Cross service traces with TraceIdRatioBasedSampler #4515
Unanswered
Henrik1979
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to get started with Tracing using .Net 6 core Web APIs, my infrastructure looks like this:
Web API ----> Database API ----> SQL Server
In the Web API I would like to sample a configurable number of the incoming requests, I'm using this configuration:
And calling Database API with this dummy code:
At the Database API I only want traces if the caller provides a trace ( I want a full trace through the system, when TraceIdRatioBasedSampler chooses to sample)
Configuration:
if .AddAspNetCoreInstrumentation() is in the configuration everything is traced , if it's removed nothing is traced
Can anyone please tell me if what I'm trying to do is possible and if so point me in the right direction
Beta Was this translation helpful? Give feedback.
All reactions