Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hook up an OkHttp Dispatcher to propagate context into calls. #102

Merged
merged 1 commit into from
Aug 6, 2021

Conversation

jkwatson
Copy link
Contributor

@jkwatson jkwatson commented Aug 5, 2021

For the demo app, it's nice to demonstrate how to get span-causality for http calls.

@jkwatson jkwatson requested review from a team as code owners August 5, 2021 20:36
@jkwatson
Copy link
Contributor Author

jkwatson commented Aug 6, 2021

Just as an FYI... even though this is a safe usage in the demo app, it may not be safe in general, due the way that okhttp queues calls under high load. Mis-parenting of spans probably isn't a huge deal in Android, but I'm going to be working on some better approaches to doing this in opentelemetry-java-instrumentation and will probably use this example as the way to experiment with those better approaches.

@jkwatson jkwatson merged commit 2b21d2b into main Aug 6, 2021
@jkwatson jkwatson deleted the demo_propagate_context branch August 6, 2021 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants