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

Move xray propagator from contrib #4544

Closed
wants to merge 100 commits into from

Conversation

martinkuba
Copy link
Contributor

@martinkuba martinkuba commented Mar 14, 2024

This is part of #4494

It should be possible to configure the xray propagator using the OTEL_PROPAGATORS env variable. This is currently documented here, and it is also part of the lambda spec.

This was discussed in the SIG meeting on 1/31/24 and decided that the propagator should be moved from contrib to here. This will then make it possible to hardcode the mapping of the name xray to the AWSXrayPropagator implementation in the BasicTracerProvider.

fyi @carolabadeer (as the maintainer of this component in https://github.com/open-telemetry/opentelemetry-js-contrib)

Note about history -
This PR includes the commit history from the contrib repository for any changes made to these files. The upside is that it preserves the history of the original authors. The downside is that many chore commits were brought over as well (including contrib release commits). The commit messages also include links to PRs in the opentelemetry-js-contrib that are no longer valid in the context of the opentelemetry-js repository. I think this is similar to what was done when the API was moved (the links in this PR are also invalid).

As an alternative, I could open this PR without the history, or I could selectively remove commits we do not want to bring over.

Anuraag Agrawal and others added 30 commits April 15, 2021 21:39
* feat: add xray propagator

* chore: cleanups

* Remove AWS Distro link

Co-authored-by: Valentin Marchaud <thisismac47@gmail.com>
Co-authored-by: vmarchaud <vmarchaud@users.noreply.github.com>
)

Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
* feat: add ESM builds for packages used in browser

* fix(id-generator-aws-xray): missed including esm files
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
* chore: update core to 0.20.0

* chore: fix test

* chore: review comments and lint

* chore: get example versions from previous update

* chore: lint
Co-authored-by: dyladan <dyladan@users.noreply.github.com>
* chore: move api into peer dependency

* fix peer-api-check script
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
Co-authored-by: vmarchaud <vmarchaud@users.noreply.github.com>
Co-authored-by: vmarchaud <contact@vmarchaud.fr>
* chore: 0.22.0 release proposal

* chore: changelog

Co-authored-by: dyladan <dyladan@users.noreply.github.com>
* chore: 0.23.0 release proposal

* chore: changelog

Co-authored-by: obecny <obecny@users.noreply.github.com>
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
Co-authored-by: dyladan <dyladan@users.noreply.github.com>
…588493c0447204a506c4d61aff5003090c'

git-subtree-dir: packages/opentelemetry-propagator-aws-xray
git-subtree-mainline: 1b4999f
git-subtree-split: 57ca245
@martinkuba martinkuba reopened this Mar 16, 2024
Copy link

linux-foundation-easycla bot commented Mar 16, 2024

CLA Missing ID CLA Not Signed

Copy link

codecov bot commented Mar 16, 2024

Codecov Report

Merging #4544 (d5adf80) into main (1b4999f) will increase coverage by 0.07%.
Report is 16 commits behind head on main.
The diff coverage is 100.00%.

❗ Current head d5adf80 differs from pull request most recent head a412ab1. Consider uploading reports for the commit a412ab1 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4544      +/-   ##
==========================================
+ Coverage   92.83%   92.91%   +0.07%     
==========================================
  Files         328      329       +1     
  Lines        9481     9577      +96     
  Branches     2031     2057      +26     
==========================================
+ Hits         8802     8898      +96     
  Misses        679      679              
Files Coverage Δ
...metry-propagator-aws-xray/src/AWSXRayPropagator.ts 100.00% <100.00%> (ø)

... and 8 files with indirect coverage changes

@martinkuba
Copy link
Contributor Author

@pichlermarc I have opened to two alternative PRs to this one

Please let me know which of these three PRs makes most sense to pursue.

@martinkuba
Copy link
Contributor Author

Closing in favor of #4603

@martinkuba martinkuba closed this Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.