Skip to content
Discussion options

You must be logged in to vote

Where db.collection.name should be visible instead of db.sql.table? db.client.connections attributes are like
"attributes": "{pool.name='HikariPool-1', state='used'}"

in attributes of

[otel.javaagent 2026-03-10 09:37:26:812 +0100] [qtp1253241180-71] INFO io.opentelemetry.exporter.logging.LoggingSpanExporter - 'SELECT testdb.metrics_data' : 4cb27ba61bac98580273d9c7a49c35cf e040a25d1d22c83f CLIENT [tracer: io.opentelemetry.jdbc:2.25.0-alpha]
AttributesMap{data={db.sql.table=metrics_data, db.operation=SELECT, thread.id=71, thread.name=qtp1253241180-71, db.name=testdb, db.connection_string=h2:mem:, db.user=sa, db.statement= SELECT COUNT(*) FROM metrics_data WHERE metric_service = ? , db.sy…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@laurit
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mfridljand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants