[receiver/sqlserver] Accept traceparent context info#39539
Merged
atoulme merged 8 commits intoApr 24, 2025
Merged
Conversation
atoulme
approved these changes
Apr 24, 2025
Contributor
atoulme
left a comment
There was a problem hiding this comment.
Written by codeowner, approved and merging.
songy23
pushed a commit
that referenced
this pull request
Dec 23, 2025
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description This PR makes postgres receiver to parse `application_name` as trace context when fetching query samples. This is similar to what [sqlserver receiver's trace context approach](#39539) where it reads the value from `SET CONTEXT`. In this implementation, the receiver reads the value from `SET application_name`. <!--Describe what testing was performed and which tests were added.--> #### Testing It has a test `TestScrapeQuerySampleWithTraceparent` to verify the result.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Accept
context_infowithtraceparentformat in query sample collection, setting log record with correct traceId and spanId.Example use case: open-telemetry/opentelemetry-dotnet-contrib#2709
Link to tracking issue
n/a
Testing
Updated
Documentation
Added