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

way to enter an implicit context from explicit data #16

Open
c-cube opened this issue Sep 15, 2023 · 0 comments
Open

way to enter an implicit context from explicit data #16

c-cube opened this issue Sep 15, 2023 · 0 comments
Assignees

Comments

@c-cube
Copy link
Owner

c-cube commented Sep 15, 2023

say you receive via HTTP a trace-id/span ID and want to process that request synchronously using the implicit with_span interface. There needs to be a way to associate the incoming contextual information with the current scope, without necessarily entering a fresh new span from it.

Something like

val with_enter_implicit_context : span -> (unit -> 'a) -> 'a

and then you're inside that span. It works with an explicit span too because these contain a regular span.

cc @ELLIOTTCABLE

@c-cube c-cube self-assigned this Sep 15, 2023
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