Tracing and httpclient #5345
-
We are just getting started with opentelemetry tracing. What happens if our external customers uses asp.net and httpclient to call to our services? Will tracing be broke now(we wont have traces) due to issue described with httpclient in link? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
@noelmcgrath - Are you instrumenting your app for both HttpClient and ASP.NET Core?. If you are running in to a specific issue, share the details here. |
Beta Was this translation helpful? Give feedback.
In case of parent-based sampler the sampling decision is based on the sampling decision of parent span. In your case, ProjectB was sending the
traceparent
ending with-00
i.e. it did not sample in the trace. Following that, ProjectA was following the parent's decision and was not sampling the span.With AlwaysOn sampler, it does not take the parent's sampling decision in to account and always samples in the activity.
Now, with the case when the
traceparent
is not received by ProjectA(when tried with curl) and it is using ParentBasedSampler. This is a special case where the sampler follows AlwaysOn sampling behavior. You can read more about it in spec here https://github.com/open-telemetry…