ActivitySource returns null Activity when usind AddOpenTelemetry #6213
Unanswered
andr3marra
asked this question in
Q&A
Replies: 1 comment
-
Blind shot, not tested it: You are creating activity source as Consider:
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, i am learning how to implement my own traces but i'm not able to make it work with AddOpenTelemetry. Everytime i start and activity if returns null. If i write the same code in a AspNet application, inside a minimal api call the activity returned is not null, looks like i'm missing something here. How can i make the following code work? If i use Sdk.CreateTracerProviderBuilder() it works properly but i want to use DI.
Beta Was this translation helpful? Give feedback.
All reactions