Skip to content

Commit

Permalink
[Internal] Distributed Tracing: Fixes Client Config Test (#4406)
Browse files Browse the repository at this point in the history
* Adds code to create activity even customer is not subscribed to the feature

* Added documentation
  • Loading branch information
sourabh1007 committed Apr 15, 2024
1 parent c615945 commit de36de4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public static OpenTelemetryCoreRecorder CreateRecorder(string operationName,
// Safety check as diagnostic logs should not break the code.
if (Activity.Current?.TraceId != null)
{
// This id would be useful to trace calls at backend services when distributed tracing feature is available there.
trace.AddDatum("DistributedTraceId", Activity.Current.TraceId);
}
}
Expand Down

0 comments on commit de36de4

Please sign in to comment.