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

Drop include_trace_context parameter from Logs API/SDK #1133

Merged
merged 9 commits into from
Jul 10, 2023

Conversation

lalitb
Copy link
Member

@lalitb lalitb commented Jun 26, 2023

Fixes #1132

Changes

Please provide a brief description of the changes here.

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

@lalitb lalitb requested a review from a team as a code owner June 26, 2023 23:20
@codecov
Copy link

codecov bot commented Jun 26, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (309b4e5) 49.3% compared to head (62e16b8) 49.4%.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1133   +/-   ##
=====================================
  Coverage   49.3%   49.4%           
=====================================
  Files        175     175           
  Lines      20470   20434   -36     
=====================================
- Hits       10101   10100    -1     
+ Misses     10369   10334   -35     
Impacted Files Coverage Δ
opentelemetry-api/src/global/logs.rs 0.0% <0.0%> (ø)
opentelemetry-api/src/logs/logger.rs 0.0% <0.0%> (ø)
opentelemetry-api/src/logs/noop.rs 0.0% <0.0%> (ø)
opentelemetry-otlp/src/logs.rs 0.0% <0.0%> (ø)
opentelemetry-sdk/src/logs/log_emitter.rs 0.0% <0.0%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@lalitb lalitb changed the title Drop include_trace_context parameter from Log API/SDK Drop include_trace_context parameter from Logs API/SDK Jun 27, 2023
Co-authored-by: Leighton Chen <lechen@microsoft.com>
Comment on lines 208 to 211
let ctx = Context::current();
if ctx.has_active_span() {
let span = ctx.span();
record.trace_context = Some(span.span_context().into());
Copy link
Contributor

Choose a reason for hiding this comment

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

Now that we merged #1140. Maybe use map_current here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Have resolved the merge conflicts now, and using map_current for active context.

@TommyCpp TommyCpp merged commit 2d5d544 into open-telemetry:main Jul 10, 2023
10 checks passed
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.

Drop include_trace_context parameter from Logs API/SDK
3 participants