Skip to content

Drop include_trace_context parameter from Logs API/SDK#1133

Merged
TommyCpp merged 9 commits intoopen-telemetry:mainfrom
lalitb:drop_log_include_trace_context
Jul 10, 2023
Merged

Drop include_trace_context parameter from Logs API/SDK#1133
TommyCpp merged 9 commits intoopen-telemetry:mainfrom
lalitb:drop_log_include_trace_context

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 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
takumi-earth pushed a commit to earthlings-dev/opentelemetry-rust that referenced this pull request Jan 27, 2026
…y#1133)

* Drop log API include_trace_context parameter

* lint errors

* update Logger:emit doc

* update doc

* update changelog

* Update opentelemetry-api/CHANGELOG.md

Co-authored-by: Leighton Chen <lechen@microsoft.com>

* fix merge errors

* fix tests

---------

Co-authored-by: Leighton Chen <lechen@microsoft.com>
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