You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it should be set if the operation name is provided by the library being instrumented.
Since the general SQL client is supported in the auto-instrumentation, it's expected to have valid db.operation attribute for db statement that performs CREATE, DROP, ALTER operation
Steps to reproduce
Auto-instrument a Java application that executes CREATE INDEX/DROP INDEX/ALTER TABLE command on MySQL programmatically. The generated trace is not emitted with db.operation but only db.statement.
Sample trace (business information is sanitized):
ScopeSpans #0
ScopeSpans SchemaURL:
InstrumentationScope io.opentelemetry.jdbc 1.33.0-alpha-SNAPSHOT
Span #0
Trace ID : 656a3cef641c89ebfc6e371001ee7a47
Parent ID :
ID : 1d68b32ea8ac620e
Name : 0d9a31b6-6617-4019-a9c9-aa66406d056b
Kind : Client
Start time : 2023-12-01 20:07:11.331591 +0000 UTC
End time : 2023-12-01 20:07:11.331839515 +0000 UTC
Status code : Unset
Status message :
Attributes:
-> db.name: Str(xxx)
-> db.statement: Str(CREATE INDEX types_name ON types (name))
-> db.system: Str(xxx)
-> db.user: Str(xxx)
-> thread.id: Int(1)
-> thread.name: Str(main)
Expected behavior
The attribute db.operation is present.
Actual behavior
The attribute db.operation is missing.
Javaagent or library instrumentation version
latest
Environment
JDK: OS:
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
The attribute
db.operation
is missing for some certain SQL statements includingCREATE
,DROP
,ALTER
.Per Semantic Conventions for Database Client Calls,
Since the general SQL client is supported in the auto-instrumentation, it's expected to have valid
db.operation
attribute for db statement that performsCREATE
,DROP
,ALTER
operationSteps to reproduce
Auto-instrument a Java application that executes
CREATE INDEX
/DROP INDEX
/ALTER TABLE
command on MySQL programmatically. The generated trace is not emitted withdb.operation
but onlydb.statement
.Sample trace (business information is sanitized):
Expected behavior
The attribute
db.operation
is present.Actual behavior
The attribute
db.operation
is missing.Javaagent or library instrumentation version
latest
Environment
JDK:
OS:
Additional context
No response
The text was updated successfully, but these errors were encountered: