| # | |
| # Licensed to the Apache Software Foundation (ASF) under one or more | |
| # contributor license agreements. See the NOTICE file distributed with | |
| # this work for additional information regarding copyright ownership. | |
| # The ASF licenses this file to You 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. | |
| # | |
| logItems: | |
| - serviceName: provider | |
| logSize: 4 | |
| logs: | |
| - timestamp: gt 0 | |
| endpoint: '/users' | |
| body: | |
| type: 'text' | |
| content: | |
| text: 'Loguru provider error reported.' | |
| traceContext: | |
| traceId: not null | |
| traceSegmentId: not null | |
| spanId: 0 | |
| tags: | |
| data: | |
| - key: level | |
| value: ERROR | |
| - key: logger | |
| value: loguru | |
| - key: thread | |
| value: not null | |
| - key: exception | |
| value: not null | |
| layer: '' | |
| - timestamp: gt 0 | |
| endpoint: '/users' | |
| body: | |
| type: 'text' | |
| content: | |
| text: not null | |
| traceContext: | |
| traceId: not null | |
| traceSegmentId: not null | |
| spanId: 0 | |
| tags: | |
| data: | |
| - key: level | |
| value: ERROR | |
| - key: logger | |
| value: not null | |
| - key: thread | |
| value: not null | |
| layer: '' | |
| - timestamp: gt 0 | |
| endpoint: '/users' | |
| body: | |
| type: 'text' | |
| content: | |
| text: 'Loguru provider warning reported.' | |
| traceContext: | |
| traceId: not null | |
| traceSegmentId: not null | |
| spanId: 0 | |
| tags: | |
| data: | |
| - key: level | |
| value: WARNING | |
| - key: logger | |
| value: loguru | |
| - key: thread | |
| value: not null | |
| layer: '' | |
| - timestamp: gt 0 | |
| endpoint: '/users' | |
| body: | |
| type: 'text' | |
| content: | |
| text: not null | |
| traceContext: | |
| traceId: not null | |
| traceSegmentId: not null | |
| spanId: 0 | |
| tags: | |
| data: | |
| - key: level | |
| value: CRITICAL | |
| - key: logger | |
| value: not null | |
| - key: thread | |
| value: not null | |
| layer: '' | |
| meterItems: [ ] | |
| segmentItems: | |
| - serviceName: provider | |
| segmentSize: 1 | |
| segments: | |
| - segmentId: not null | |
| spans: | |
| - operationName: '/users' | |
| parentSpanId: -1 | |
| spanId: 0 | |
| spanLayer: Http | |
| startTime: gt 0 | |
| endTime: gt 0 | |
| componentId: 7014 | |
| isError: false | |
| spanType: Entry | |
| peer: not null | |
| skipAnalysis: false | |
| tags: | |
| - key: http.method | |
| value: GET | |
| - key: http.url | |
| value: not null | |
| - key: http.status_code | |
| value: '200' | |
| refs: | |
| - parentEndpoint: '/users' | |
| networkAddress: not null | |
| refType: CrossProcess | |
| parentSpanId: 1 | |
| parentTraceSegmentId: not null | |
| parentServiceInstance: not null | |
| parentService: consumer | |
| traceId: not null | |
| - serviceName: consumer | |
| segmentSize: 1 | |
| segments: | |
| - segmentId: not null | |
| spans: | |
| - componentId: 7002 | |
| endTime: gt 0 | |
| isError: false | |
| operationName: '/users' | |
| parentSpanId: 0 | |
| peer: not null | |
| skipAnalysis: false | |
| spanId: 1 | |
| spanLayer: Http | |
| spanType: Exit | |
| startTime: gt 0 | |
| tags: | |
| - key: http.method | |
| value: GET | |
| - key: http.url | |
| value: not null | |
| - key: http.status_code | |
| value: '200' | |
| - componentId: 7014 | |
| endTime: gt 0 | |
| isError: false | |
| operationName: '/users' | |
| parentSpanId: -1 | |
| peer: not null | |
| skipAnalysis: false | |
| spanId: 0 | |
| spanLayer: Http | |
| spanType: Entry | |
| startTime: gt 0 | |
| tags: | |
| - key: http.method | |
| value: GET | |
| - key: http.url | |
| value: not null | |
| - key: http.status_code | |
| value: '200' | |