Skip to content

Unable to get open telemetry tracing working #2048

Answered by samsp-msft
rcdailey asked this question in Q&A
Discussion options

You must be logged in to vote

If you are making an out of band http request - then the presence of YARP should not matter. Whether that request will have any tracing headers will depend on the environment for the request. If you are making an http request from a timer, or other event not associated with an inbound request, then there will be no context for it to propogate, so it will be empty. If you create an Activity then the request should include the span id headers.
To track it end to end, you'll want to create an ActivitySource as the parent to the activity, and register that with the OTel library with the .AddSource(activitySource.Name) API.

I recently added distinct activities to YARP for distributed tracing, …

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@rcdailey
Comment options

Comment options

You must be logged in to vote
4 replies
@rcdailey
Comment options

@MihaZupan
Comment options

@rcdailey
Comment options

@samsp-msft
Comment options

Answer selected by karelz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants