opentracing-contrib / java-jdbc

OpenTracing Instrumentation for JDBC
Apache License 2.0
82 stars 56 forks source link

Database span not contained in the parent span #123

Closed petro1 closed 1 year ago

petro1 commented 1 year ago

Database span details:

"traceID": "b770ba1c4dac9785",
"spans": [
{
"traceID": "b770ba1c4dac9785",
"spanID": "b770ba1c4dac9785",
"flags": 1,
"operationName": "Query",
"references": [],
"startTime": 1676462594032760,
"duration": 553479,
"tags": [

Other span details from the same request:

{
"traceID": "78101819be2e1ac9",
"spanID": "245cf9f59edac042",
"flags": 1,
"operationName": "Rest Call",
"references": [
{
"refType": "CHILD_OF",
"traceID": "78101819be2e1ac9",
"spanID": "586d9760ad1c6cf8"
}
],

Expected behavior: the Query operation should be a child of the parent span, as we see on Rest Call references. If I will add parameter withActiveSpanOnly=true then the Query operation will not appear at all. Environment: quarkus: 2.15.3.Final opentracing-jdbc: 0.2.15 database: db2

Properties: quarkus.datasource.jdbc.tracing=true quarkus.datasource.jdbc.driver=io.opentracing.contrib.jdbc.TracingDriver

petro1 commented 1 year ago

Any news on this issue?

petro1 commented 1 year ago

Closed as not reproduced on Unix environment.