Skip to content

Provide instrumentation name context to span - #5492

Merged
PerfectSlayer merged 9 commits into
masterfrom
bbujon/telemetry-improvements
Jun 30, 2023
Merged

Provide instrumentation name context to span#5492
PerfectSlayer merged 9 commits into
masterfrom
bbujon/telemetry-improvements

Conversation

@PerfectSlayer

@PerfectSlayer PerfectSlayer commented Jun 29, 2023

Copy link
Copy Markdown
Collaborator

What Does This Do

This PR introduce instrumentation name as context to the span.
The context was added for the following cases:

  • opentracing instrumentation
  • opentelemetry instrumentation
  • annotation instrumentation
  • dd-trace-ot module

Motivation

This is required for span metrics.

Additional Notes

This PR is the third part of the Span Metrics PR #5382

I might do a pass in most of instrumentations to add this context if needed in another PR.
There might be complication with common decorator though.

@PerfectSlayer
PerfectSlayer requested a review from a team June 29, 2023 12:03
@PerfectSlayer
PerfectSlayer requested review from a team as code owners June 29, 2023 12:03
@PerfectSlayer PerfectSlayer added comp: telemetry Telemetry inst: opentelemetry OpenTelemetry instrumentation labels Jun 29, 2023
@pr-commenter

pr-commenter Bot commented Jun 29, 2023

Copy link
Copy Markdown

Benchmarks

Parameters

Baseline Candidate
commit 1.18.0-SNAPSHOT~7835d4e4cd 1.18.0-SNAPSHOT~1a869235c4
config baseline candidate
See matching parameters
Baseline Candidate
module Agent Agent
parent None None

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 22 cases.

@richardstartin

Copy link
Copy Markdown
Contributor

Nice - this would be a good context field to add to profile samples. We would need to dictionarize the instrumentation name and set it through the profiling context integration the way we do the span name currently. I will watch the PR to know when it's available to build against.

@PerfectSlayer
PerfectSlayer force-pushed the bbujon/telemetry-improvements branch from 1a86923 to e077dd5 Compare June 30, 2023 16:31
@PerfectSlayer
PerfectSlayer merged commit fe50a9a into master Jun 30, 2023
@github-actions github-actions Bot added this to the 1.18.0 milestone Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: telemetry Telemetry inst: opentelemetry OpenTelemetry instrumentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants