How to inject Tracer using .WithTracing? #4646
jade-lucas
started this conversation in
General
Replies: 1 comment
-
@jade-lucas If you are looking to create custom spans you can do so via ActivitySource. https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/src/OpenTelemetry.Api#instrumenting-a-libraryapplication-with-net-activity-api Take a look at this example as well https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/src/OpenTelemetry.Api#instrumenting-a-libraryapplication-with-net-activity-api |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This documentation shows how to inject a Tracer. https://opentelemetry.io/docs/instrumentation/net/shim/#injecting-a-tracer-with-aspnet-core
Is there away to inject it via .WithTracing? I didn't see any examples using this approach nor any anything on the tracing builder to do so. I could be just not seeing it or do I need to break the fluent calls and do it how it show in the previous example?
https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/docs/trace/getting-started-aspnetcore/README.md
I am trying to achieve some custom tracing for things that are not implemented in OTEL.
Beta Was this translation helpful? Give feedback.
All reactions