Skip to content
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

[azcore/tracing] Add propagator and link wrapper #24069

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

karenychen
Copy link

@karenychen karenychen commented Feb 7, 2025

Adding Propagator and Links to azcore/tracing. This will allow context propagation and span links in the SDK.

  • The purpose of this PR is explained in this or a referenced issue.
  • The PR does not update generated files.
  • Tests are included and/or updated for code changes.
  • Updates to module CHANGELOG.md are included.
  • MIT license headers are included in each file.

Copy link

github-actions bot commented Feb 7, 2025

Thank you for your contribution @karenychen! We will review the pull request and get back to you soon.

@github-actions github-actions bot added Azure.Core Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Feb 7, 2025
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jhendrixMSFT Since we haven't added context propagation in the http requests, I left the newPropagatorFn here to nil. But please do let me know if you prefer it to be set :)

// TraceStateImpl contains the implementation for TraceState.
type TraceStateImpl struct {
// String contains the implementation for the TraceState.String method.
String func() string
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are more methods to the Otel implementation for TraceState, but String() is all we need at the moment to parse it to use the ParseTraceState() function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Core Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant