Skip to content

[tracing/azotel] Enable span link and propagation support#24081

Merged
jhendrixMSFT merged 11 commits intoAzure:mainfrom
karenychen:azotel-propagation-links
Feb 12, 2025
Merged

[tracing/azotel] Enable span link and propagation support#24081
jhendrixMSFT merged 11 commits intoAzure:mainfrom
karenychen:azotel-propagation-links

Conversation

@karenychen
Copy link
Copy Markdown
Contributor

@karenychen karenychen commented Feb 10, 2025

  • 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.

Description

Support span link and context propagation in tracing/azotel.

The PR adds OTel implementation to:

  • Provider.NewPropagator() to return a propagation.TraceContext() propagator for context propagation.
  • tracing.LinkFromContext() to return a OTel Span Link with the passed in attributes attached to it.
  • Span.AddLink() to add an Otel Span Link to the current span.
  • Span.SpanContext() to return the OTel Span Context of the current span.

There is no public facing API change in this PR.

@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 10, 2025
@github-actions
Copy link
Copy Markdown

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

@karenychen karenychen marked this pull request as ready for review February 11, 2025 21:07
@jhendrixMSFT
Copy link
Copy Markdown
Member

Will also need a changelog entry.

@jhendrixMSFT jhendrixMSFT merged commit 4d55b0c into Azure:main Feb 12, 2025
@karenychen karenychen deleted the azotel-propagation-links branch February 12, 2025 18:38
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.

3 participants