-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Export database query parameters #47526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for exporting database query parameters from OpenTelemetry spans to Azure Monitor telemetry. Query parameters following the db.query.parameter prefix convention are extracted from span attributes and added as properties to the remote dependency telemetry.
- Adds a constant for the
db.query.parameterprefix to align with OpenTelemetry semantic conventions - Implements a new helper method to extract and add database query parameters as telemetry properties
- Integrates the parameter extraction into the database client span processing flow
...c/main/java/com/azure/monitor/opentelemetry/autoconfigure/implementation/SpanDataMapper.java
Outdated
Show resolved
Hide resolved
...c/main/java/com/azure/monitor/opentelemetry/autoconfigure/implementation/SpanDataMapper.java
Outdated
Show resolved
Hide resolved
...c/main/java/com/azure/monitor/opentelemetry/autoconfigure/implementation/SpanDataMapper.java
Outdated
Show resolved
Hide resolved
5712a1d to
576ec1c
Compare
|
The failing tests should be fixed with #47528 |
...c/main/java/com/azure/monitor/opentelemetry/autoconfigure/implementation/SpanDataMapper.java
Outdated
Show resolved
Hide resolved
ac37426 to
8796580
Compare
No description provided.