Skip to content

Conversation

@sfleen
Copy link
Collaborator

@sfleen sfleen commented Nov 14, 2025

This removes all remaining bespoke tracing infrastructure. The main change here is registering a global tracer provider that the trace propagation service can use, replacing the manually wired span data channel.

This leaves in some remnants of the old infrastructure, specifically around the span sink types. These types are fairly viral, so a future PR will clean these up.

@sfleen sfleen force-pushed the sfleen/tracing-upstream-processor branch from 5d0e3b2 to cdbe533 Compare November 14, 2025 15:58
@sfleen sfleen force-pushed the sfleen/tracing-upstream-propagator branch from 870d872 to e460b63 Compare November 14, 2025 16:10
@sfleen sfleen force-pushed the sfleen/tracing-upstream-processor branch 2 times, most recently from 4cb58f2 to f2910f7 Compare November 17, 2025 15:47
@sfleen sfleen force-pushed the sfleen/tracing-upstream-propagator branch from e460b63 to 3d7b264 Compare November 17, 2025 15:47
This removes all remaining bespoke tracing infrastructure. The main change here is registering a global tracer provider that the trace propagation service can use, replacing the manually wired span data channel.

This leaves in some remnants of the old infrastructure, specifically around the span sink types. These types are fairly viral, so a future PR will clean these up.

Signed-off-by: Scott Fleener <[email protected]>
@sfleen sfleen force-pushed the sfleen/tracing-upstream-processor branch from f2910f7 to 3f9a2f9 Compare November 17, 2025 15:58
@sfleen sfleen requested review from cratelyn and unleashed November 19, 2025 18:50
Copy link
Member

@unleashed unleashed left a comment

Choose a reason for hiding this comment

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

LGTM

.tracer
.span_builder("".to_string())
.start_with_context(&self.tracer, &parent_ctx);
let tracer = opentelemetry::global::tracer("");
Copy link
Member

Choose a reason for hiding this comment

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

Did you consider caching this tracer in the context struct?

task,
span_sink,
}
EnabledCollector { addr, span_sink }
Copy link
Member

Choose a reason for hiding this comment

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

addr seems to no longer need to be cloned

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.

3 participants