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

IOLocal Tracing #16

Open
ChristopherDavenport opened this issue Sep 1, 2021 · 0 comments
Open

IOLocal Tracing #16

ChristopherDavenport opened this issue Sep 1, 2021 · 0 comments

Comments

@ChristopherDavenport
Copy link
Member

The limitation with the current encoding is that its reliant on the spans. And needs the new root span for incomming requests. As well some tracing may be leveraged throughout the app. So instead we can construct it initially at the beginning of the world and then allow a "principled" modification to reset for contexts like requests etc.

If we get a FiberLocal this will be nice as this could be in the F of an app, or anything with LiftIO, but this gist displays it can be done with only an IOLocal.

IOLocal

https://gist.github.com/ChristopherDavenport/d871b8c12720fd30501c7c62efaf4167

FiberLocal

https://gist.github.com/ChristopherDavenport/66afc215d0111b2916f6eb820a3e344c

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

No branches or pull requests

1 participant