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

[Trace] Add SpanData getter for Span Recordable #1508

Merged
merged 11 commits into from
Aug 2, 2022

Conversation

lalitb
Copy link
Member

@lalitb lalitb commented Jul 20, 2022

Fixes #1475

Changes

Add SpanData getter interface for Recordable, as discussed in #1475. This allows for writing the custom processor to filter the spans based on the span attributes/properties not available during span creation.
We still need to write the actual implementation of this interface for the exporters, but this is not the scope of this PR. The contributions are welcome to implement separately.

@luyor - would this suffice your requirement.

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

@lalitb lalitb requested a review from a team July 20, 2022 22:30
@codecov
Copy link

codecov bot commented Jul 20, 2022

Codecov Report

Merging #1508 (fdcc018) into main (70fd2dc) will increase coverage by 0.05%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1508      +/-   ##
==========================================
+ Coverage   84.59%   84.63%   +0.05%     
==========================================
  Files         156      156              
  Lines        4794     4795       +1     
==========================================
+ Hits         4055     4058       +3     
+ Misses        739      737       -2     
Impacted Files Coverage Δ
sdk/include/opentelemetry/sdk/trace/recordable.h 91.67% <0.00%> (-8.33%) ⬇️
ext/src/http/client/curl/http_client_curl.cc 81.07% <0.00%> (+1.14%) ⬆️

@luyor
Copy link
Contributor

luyor commented Jul 21, 2022

@lalitb This suffices my need. Nice work!

@lalitb lalitb merged commit 78551fb into open-telemetry:main Aug 2, 2022
yxue pushed a commit to yxue/opentelemetry-cpp that referenced this pull request Dec 5, 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.

[Trace SDK] Input of SpanProcessor::OnEnd should be a readable span
3 participants