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

implement retrieve span and trace id as binary #883

Merged
merged 2 commits into from
Dec 8, 2022
Merged

implement retrieve span and trace id as binary #883

merged 2 commits into from
Dec 8, 2022

Conversation

brettmc
Copy link
Collaborator

@brettmc brettmc commented Dec 6, 2022

per spec, https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#retrieving-the-traceid-and-spanid allow retrieving span and trace id as binary (byte array), using bin2hex
Update otlp span converter to use the new methods.

@brettmc brettmc requested a review from a team as a code owner December 6, 2022 00:49
@codecov
Copy link

codecov bot commented Dec 6, 2022

Codecov Report

Merging #883 (388c457) into main (587bc5a) will increase coverage by 0.01%.
The diff coverage is 88.88%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #883      +/-   ##
============================================
+ Coverage     81.56%   81.58%   +0.01%     
- Complexity     2008     2010       +2     
============================================
  Files           264      264              
  Lines          5219     5223       +4     
============================================
+ Hits           4257     4261       +4     
  Misses          962      962              
Flag Coverage Δ
7.4 81.06% <88.88%> (+0.01%) ⬆️
8.0 81.56% <88.88%> (+0.01%) ⬆️
8.1 81.70% <88.88%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Contrib/Otlp/SpanConverter.php 98.94% <80.00%> (ø)
src/API/Trace/SpanContext.php 91.89% <100.00%> (+0.98%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 587bc5a...388c457. Read the comment docs.

src/API/Trace/SpanContext.php Outdated Show resolved Hide resolved
@brettmc brettmc merged commit f5698c8 into open-telemetry:main Dec 8, 2022
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.

None yet

3 participants