skywalking-java/test/plugin/scenarios/spring-tx-scenario/config/expectedData.yaml

143 lines
4.3 KiB
YAML

# 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.
segmentItems:
- serviceName: spring-tx-scenario
segmentSize: nq 0
segments:
- segmentId: not null
spans:
- operationName: TX/get/t.a.s.a.t.s.t.s.i.DemoServiceImpl.doBiz
parentSpanId: 0
spanId: 1
spanLayer: Unknown
startTime: not null
endTime: not null
componentId: 78
isError: false
spanType: Local
peer: ''
tags:
- {key: isolationLevel, value: '-1'}
- {key: propagationBehavior, value: '0'}
- {key: timeout, value: '-1'}
skipAnalysis: 'false'
- operationName: Mysql/JDBC/PreparedStatement/executeUpdate
parentSpanId: 0
spanId: 2
spanLayer: Database
startTime: not null
endTime: not null
componentId: 33
isError: false
spanType: Exit
peer: mysql:3306
tags:
- {key: db.type, value: sql}
- {key: db.instance, value: ''}
- {key: db.statement, value: 'insert into `test`.`table_demo`(name) values(?)'}
skipAnalysis: 'false'
- operationName: Mysql/JDBC/PreparedStatement/executeUpdate
parentSpanId: 0
spanId: 3
spanLayer: Database
startTime: not null
endTime: not null
componentId: 33
isError: false
spanType: Exit
peer: mysql:3306
tags:
- {key: db.type, value: sql}
- {key: db.instance, value: ''}
- {key: db.statement, value: 'insert into `test`.`table_demo`(name) values(?)'}
skipAnalysis: 'false'
- operationName: Mysql/JDBC/Connection/commit
parentSpanId: 4
spanId: 5
spanLayer: Database
startTime: not null
endTime: not null
componentId: 33
isError: false
spanType: Exit
peer: mysql:3306
tags:
- {key: db.type, value: sql}
- {key: db.instance, value: ''}
- {key: db.statement, value: ''}
skipAnalysis: 'false'
- operationName: Mysql/JDBC/Statement/executeQuery
parentSpanId: 4
spanId: 6
spanLayer: Database
startTime: not null
endTime: not null
componentId: 33
isError: false
spanType: Exit
peer: mysql:3306
tags:
- {key: db.type, value: sql}
- {key: db.instance, value: ''}
- {key: db.statement, value: select @@session.tx_read_only}
skipAnalysis: 'false'
- operationName: Mysql/JDBC/Connection/close
parentSpanId: 4
spanId: 7
spanLayer: Database
startTime: not null
endTime: not null
componentId: 33
isError: false
spanType: Exit
peer: mysql:3306
tags:
- {key: db.type, value: sql}
- {key: db.instance, value: ''}
- {key: db.statement, value: ''}
skipAnalysis: 'false'
- operationName: TX/commit
parentSpanId: 0
spanId: 4
spanLayer: Unknown
startTime: not null
endTime: not null
componentId: 78
isError: false
spanType: Local
peer: ''
tags:
- {key: isNewTransaction, value: 'true'}
- {key: hasSavepoint, value: 'false'}
- {key: rollbackOnly, value: 'false'}
- {key: isCompleted, value: 'false'}
skipAnalysis: 'false'
- operationName: GET:/case/spring-tx-case
parentSpanId: -1
spanId: 0
spanLayer: Http
startTime: not null
endTime: not null
componentId: 14
isError: false
spanType: Entry
peer: ''
tags:
- {key: url, value: 'http://localhost:8080/spring-tx-scenario/case/spring-tx-case'}
- {key: http.method, value: GET}
- {key: http.status_code, value: '200'}
skipAnalysis: 'false'