Replies: 1 comment
-
Could you provide a minimal repro app which shows this behavior? |
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
-
Hello, I followed the example to add AspNetCoreInstrumentation and HttpClientInstrumentation into my .Net6 WebAPI project.
Services.AddOpenTelemetry()
.ConfigureResource(configureResource)
.WithTracing(builder =>
{
builder
.AddSource(Instrumentation.ActivitySourceName)
.SetSampler(new AlwaysOnSampler())
.AddHttpClientInstrumentation()
.AddAspNetCoreInstrumentation()
.AddConsoleExporter();
});
When I run the app and call the API, I can see the trace created by HttpClientInstrumentation when there's outgoing http traffic in my code, but there's no any trace created by AspNetCoreInstrumentation.
There was no any error message, is there any hint for me to troubleshoot? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions