|
| 1 | + # Licensed to the Apache Software Foundation (ASF) under one |
| 2 | + # or more contributor license agreements. See the NOTICE file |
| 3 | + # distributed with this work for additional information |
| 4 | + # regarding copyright ownership. The ASF licenses this file |
| 5 | + # to you under the Apache License, Version 2.0 (the |
| 6 | + # "License"); you may not use this file except in compliance |
| 7 | + # with the License. You may obtain a copy of the License at |
| 8 | + # |
| 9 | + # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | + # |
| 11 | + # Unless required by applicable law or agreed to in writing, software |
| 12 | + # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + # See the License for the specific language governing permissions and |
| 15 | + # limitations under the License. |
| 16 | + |
| 17 | + ignoreSegmentNames: |
| 18 | + - HEAD:/provider/b/healthCheck |
| 19 | + - /provider/b/healthCheck |
| 20 | + |
| 21 | + segmentItems: |
| 22 | + - serviceName: gateway-projectB-scenario |
| 23 | + segmentSize: nq 0 |
| 24 | + segments: |
| 25 | + - segmentId: not null |
| 26 | + spans: |
| 27 | + - operationName: GET:/provider/b/testcase |
| 28 | + parentSpanId: -1 |
| 29 | + spanId: 0 |
| 30 | + spanLayer: Http |
| 31 | + startTime: nq 0 |
| 32 | + endTime: nq 0 |
| 33 | + componentId: nq 0 |
| 34 | + isError: false |
| 35 | + spanType: Entry |
| 36 | + peer: '' |
| 37 | + tags: |
| 38 | + - {key: url, value: not null} |
| 39 | + - {key: http.method, value: GET} |
| 40 | + - {key: http.status_code, value: '200'} |
| 41 | + refs: |
| 42 | + - {parentEndpoint: SpringCloudGateway/GatewayFilter, networkAddress: not null, |
| 43 | + refType: CrossProcess, parentSpanId: 2, parentTraceSegmentId: not null, parentServiceInstance: not |
| 44 | + null, parentService: not null, traceId: not null} |
| 45 | + skipAnalysis: 'false' |
| 46 | + |
| 47 | + - serviceName: gateway-projectA-scenario |
| 48 | + segmentSize: nq 0 |
| 49 | + segments: |
| 50 | + # -------------------------------------------------------- |
| 51 | + # Case 1: Timeout Error |
| 52 | + # -------------------------------------------------------- |
| 53 | + # A. Entry Span |
| 54 | + - segmentId: not null |
| 55 | + spans: |
| 56 | + - operationName: /provider/timeout/error |
| 57 | + parentSpanId: -1 |
| 58 | + spanId: 0 |
| 59 | + spanLayer: Http |
| 60 | + startTime: nq 0 |
| 61 | + endTime: nq 0 |
| 62 | + componentId: nq 0 |
| 63 | + isError: true |
| 64 | + spanType: Entry |
| 65 | + peer: '' |
| 66 | + tags: |
| 67 | + - {key: url, value: not null } |
| 68 | + - {key: http.method, value: GET} |
| 69 | + - {key: http.status_code, value: '500'} |
| 70 | + skipAnalysis: 'false' |
| 71 | + |
| 72 | + # B. Exit Span (Contains Logs) |
| 73 | + - segmentId: not null |
| 74 | + spans: |
| 75 | + - operationName: SpringCloudGateway/sendRequest |
| 76 | + parentSpanId: 1 |
| 77 | + spanId: 2 |
| 78 | + spanLayer: Http |
| 79 | + startTime: nq 0 |
| 80 | + endTime: nq 0 |
| 81 | + componentId: nq 0 |
| 82 | + isError: true |
| 83 | + spanType: Exit |
| 84 | + peer: not null |
| 85 | + skipAnalysis: 'false' |
| 86 | + tags: |
| 87 | + - { key: url, value: not null } |
| 88 | + logs: |
| 89 | + - logEvent: |
| 90 | + - { key: event, value: error } |
| 91 | + - { key: error.kind, value: not null } |
| 92 | + - { key: message, value: not null } |
| 93 | + - { key: stack, value: not null} |
| 94 | + - operationName: SpringCloudGateway/RoutingFilter |
| 95 | + parentSpanId: 0 |
| 96 | + spanId: 1 |
| 97 | + startTime: nq 0 |
| 98 | + endTime: nq 0 |
| 99 | + componentId: nq 0 |
| 100 | + isError: false |
| 101 | + spanType: Local |
| 102 | + peer: '' |
| 103 | + skipAnalysis: 'false' |
| 104 | + refs: |
| 105 | + - { parentEndpoint: '/provider/timeout/error', networkAddress: '', refType: CrossThread, |
| 106 | + parentSpanId: 0, parentTraceSegmentId: not null, parentServiceInstance: not |
| 107 | + null, parentService: not null, traceId: not null } |
| 108 | + - operationName: SpringCloudGateway/GatewayFilter |
| 109 | + parentSpanId: -1 |
| 110 | + spanId: 0 |
| 111 | + startTime: nq 0 |
| 112 | + endTime: nq 0 |
| 113 | + componentId: nq 0 |
| 114 | + isError: false |
| 115 | + spanType: Local |
| 116 | + peer: '' |
| 117 | + skipAnalysis: 'false' |
| 118 | + refs: |
| 119 | + - { parentEndpoint: '/provider/timeout/error', networkAddress: '', refType: CrossThread, |
| 120 | + parentSpanId: 0, parentTraceSegmentId: not null, parentServiceInstance: not |
| 121 | + null, parentService: not null, traceId: not null } |
| 122 | + |
| 123 | + # -------------------------------------------------------- |
| 124 | + # Case 2: Success Case |
| 125 | + # -------------------------------------------------------- |
| 126 | + # A. Entry Span |
| 127 | + - segmentId: not null |
| 128 | + spans: |
| 129 | + - operationName: /provider/b/testcase |
| 130 | + parentSpanId: -1 |
| 131 | + spanId: 0 |
| 132 | + spanLayer: Http |
| 133 | + startTime: nq 0 |
| 134 | + endTime: nq 0 |
| 135 | + componentId: nq 0 |
| 136 | + isError: false |
| 137 | + spanType: Entry |
| 138 | + peer: '' |
| 139 | + tags: |
| 140 | + - { key: url, value: not null } |
| 141 | + - { key: http.method, value: GET } |
| 142 | + - { key: http.status_code, value: '200' } |
| 143 | + skipAnalysis: 'false' |
| 144 | + |
| 145 | + # B. Exit Span |
| 146 | + - segmentId: not null |
| 147 | + spans: |
| 148 | + - operationName: SpringCloudGateway/sendRequest |
| 149 | + parentSpanId: 1 |
| 150 | + spanId: 2 |
| 151 | + spanLayer: Http |
| 152 | + startTime: nq 0 |
| 153 | + endTime: nq 0 |
| 154 | + componentId: nq 0 |
| 155 | + isError: false |
| 156 | + spanType: Exit |
| 157 | + peer: not null |
| 158 | + tags: |
| 159 | + - {key: url, value: not null} |
| 160 | + - {key: http.status_code, value: '200'} |
| 161 | + skipAnalysis: 'false' |
| 162 | + - operationName: SpringCloudGateway/RoutingFilter |
| 163 | + parentSpanId: 0 |
| 164 | + spanId: 1 |
| 165 | + startTime: nq 0 |
| 166 | + endTime: nq 0 |
| 167 | + componentId: nq 0 |
| 168 | + isError: false |
| 169 | + spanType: Local |
| 170 | + peer: '' |
| 171 | + skipAnalysis: 'false' |
| 172 | + refs: |
| 173 | + - {parentEndpoint: '/provider/b/testcase', networkAddress: '', refType: CrossThread, |
| 174 | + parentSpanId: 0, parentTraceSegmentId: not null, parentServiceInstance: not |
| 175 | + null, parentService: not null, traceId: not null} |
| 176 | + - operationName: SpringCloudGateway/GatewayFilter |
| 177 | + parentSpanId: -1 |
| 178 | + spanId: 0 |
| 179 | + startTime: nq 0 |
| 180 | + endTime: nq 0 |
| 181 | + componentId: nq 0 |
| 182 | + isError: false |
| 183 | + spanType: Local |
| 184 | + peer: '' |
| 185 | + skipAnalysis: 'false' |
| 186 | + refs: |
| 187 | + - {parentEndpoint: '/provider/b/testcase', networkAddress: '', refType: CrossThread, |
| 188 | + parentSpanId: 0, parentTraceSegmentId: not null, parentServiceInstance: not |
| 189 | + null, parentService: not null, traceId: not null} |
0 commit comments