forked from cisco-open/test-telemetry-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
trace-definition.yaml
182 lines (181 loc) · 6.7 KB
/
trace-definition.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
#
# Copyright 2022 AppDynamics Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
traceCompletionTimeoutSecs: 120
rootSpans:
- name: "healthCheck"
spanKind: SPAN_KIND_SERVER
reportingResource: http_backend
attributes:
type: 'roundRobin(["REST"])'
url: 'roundRobin(["/healthcheck"])'
payloadCount: 20
copyCount: 10
payloadFrequencySeconds: 15
- name: "searchAccountsRequest"
spanKind: SPAN_KIND_SERVER
reportingResource: request
childSpans: ["searchAccountsHTTPRequest", "searchAccountsProcessing"]
payloadCount: 5
copyCount: 3
- name: "getAccountDetails"
spanKind: SPAN_KIND_SERVER
reportingResource: request
childSpans: ["getAccountDetailsHTTPRequest", "getAccountDetailsProcessing"]
payloadCount: 10
copyCount: 5
- name: "updateAccountDetails"
spanKind: SPAN_KIND_SERVER
reportingResource: request
childSpans: ["updateAccountDetailsHTTPRequest", "updateAccountDetailsProcessing", "updateAccountDetailsQueue"]
payloadCount: 7
payloadFrequencySeconds: 90
spanErrorEndsTrace: true
- name: "deleteAccount"
spanKind: SPAN_KIND_SERVER
reportingResource: request
childSpans: ["deleteAccountHTTPRequest", "deleteAccountProcessing", "deleteAccountQueue"]
payloadCount: 5
payloadFrequencySeconds: 20
- name: "createNewAccount"
spanKind: SPAN_KIND_SERVER
reportingResource: request
childSpans: ["createAccountHTTPRequest", "createAccountProcessing", "validateAccountDetails"]
payloadCount: 10
copyCount: 3
payloadFrequencySeconds: 15
childSpans:
- name: "searchAccountsHTTPRequest"
spanKind: SPAN_KIND_SERVER
reportingResource: http_backend
attributes:
request.incoming.host.ip: 'IPv4Sequence("154.2.55.33")'
request.incoming.auth.type: 'roundRobin(["MFA", "LDAP", "OAuth", "SSO"])'
- name: "searchAccountsProcessing"
spanKind: SPAN_KIND_INTERNAL
reportingResource: service_instance
childSpans: ["searchAccountsQuery"]
- name: "searchAccountsQuery"
spanKind: SPAN_KIND_INTERNAL
reportingResource: database_backend
- name: "getAccountDetailsHTTPRequest"
spanKind: SPAN_KIND_SERVER
reportingResource: http_backend
attributes:
request.incoming.host.ip: 'IPv4Sequence("131.54.24.4")'
request.incoming.auth.type: 'roundRobin(["MFA", "LDAP", "OAuth", "SSO"])'
- name: "getAccountDetailsProcessing"
spanKind: SPAN_KIND_INTERNAL
reportingResource: service_instance
childSpans: ["checkAccountDetailsCache", "getAccountDetailsQuery"]
- name: "checkAccountDetailsCache"
spanKind: SPAN_KIND_INTERNAL
reportingResource: service_instance
- name: "getAccountDetailsQuery"
spanKind: SPAN_KIND_INTERNAL
reportingResource: database_backend
errorFrequency: 4
- name: "updateAccountDetailsHTTPRequest"
spanKind: SPAN_KIND_SERVER
reportingResource: http_backend
spanStartTimePct: 5
spanEndTimePct: 100
attributes:
request.incoming.host.ip: 'IPv4Sequence("212.34.243.23")'
request.incoming.auth.type: 'roundRobin(["MFA", "LDAP", "OAuth", "SSO"])'
- name: "updateAccountDetailsProcessing"
spanKind: SPAN_KIND_INTERNAL
reportingResource: service_instance
errorFrequency: 10
spanStartTimePct: 10
spanEndTimePct: 50
childSpans: ["updateAccountDetailsQuery"]
- name: "updateAccountDetailsQuery"
spanKind: SPAN_KIND_INTERNAL
reportingResource: database_backend
errorFrequency: 15
spanStartTimePct: 20
spanEndTimePct: 45
- name: "updateAccountDetailsQueue"
spanKind: SPAN_KIND_PRODUCER
reportingResource: messaging_backend
spanStartTimePct: 55
spanEndTimePct: 120
attributes:
messaging.backend.topic: 'counter("data.account_update.v1-partition-")'
- name: "deleteAccountHTTPRequest"
spanKind: SPAN_KIND_SERVER
reportingResource: http_backend
attributes:
request.incoming.host.ip: 'IPv4Sequence("112.31.21.32")'
request.incoming.auth.type: 'roundRobin(["MFA", "LDAP", "OAuth", "SSO"])'
- name: "deleteAccountProcessing"
spanKind: SPAN_KIND_INTERNAL
reportingResource: service_instance
childSpans: ["deactivateAccountCentral", "deleteAccountQuery"]
- name: "deactivateAccountCentral"
spanKind: SPAN_KIND_CLIENT
reportingResource: service_instance
errorFrequency: 7
- name: "deleteAccountQuery"
spanKind: SPAN_KIND_INTERNAL
reportingResource: database_backend
- name: "deleteAccountQueue"
spanKind: SPAN_KIND_PRODUCER
reportingResource: messaging_backend
attributes:
messaging.backend.topic: 'counter("data.account_delete.v1-partition-1")'
- name: "createAccountHTTPRequest"
spanKind: SPAN_KIND_SERVER
reportingResource: http_backend
attributes:
request.incoming.host.ip: 'IPv4Sequence("143.43.76.65")'
request.incoming.auth.type: 'roundRobin(["MFA", "LDAP", "OAuth", "SSO"])'
- name: "createAccountProcessing"
spanKind: SPAN_KIND_INTERNAL
reportingResource: service_instance
childSpans: ["createAccountCentral", "activateAccountCentral", "createAccountQueue", "checkCreatedAccountQueue", "createAccountQuery"]
- name: "createAccountCentral"
spanKind: SPAN_KIND_CLIENT
reportingResource: service_instance
errorFrequency: 10
- name: "activateAccountCentral"
spanKind: SPAN_KIND_CLIENT
reportingResource: service_instance
childSpans: ["activateAccountAuthCentral"]
- name: "activateAccountAuthCentral"
spanKind: SPAN_KIND_CLIENT
reportingResource: service_instance
attributes:
account.auth.type: 'roundRobin(["MFA", "LDAP", "OAuth", "SSO"])'
- name: "createAccountQueue"
spanKind: SPAN_KIND_PRODUCER
reportingResource: messaging_backend
attributes:
messaging.backend.topic: 'counter("data.account_create.v1-partition-3")'
- name: "checkCreatedAccountQueue"
spanKind: SPAN_KIND_CONSUMER
reportingResource: messaging_backend
errorFrequency: 5
attributes:
messaging.backend.topic: 'counter("data.account_created.v1-partition-2")'
- name: "createAccountQuery"
spanKind: SPAN_KIND_INTERNAL
reportingResource: database_backend
errorFrequency: 8
- name: "validateAccountDetails"
spanKind: SPAN_KIND_CLIENT
reportingResource: service_instance
childSpans: ["getAccountDetailsProcessing"]