Skip to content

Conversation

@msosnicki
Copy link
Contributor

Proposal to change the behavior of NatchezMiddleware.server.

Currently, it puts the context into existing span. The span per request is created in the EntryPointOps, which is only used for Kleisli based implementation. It means that server middleware is not working correctly with IOLocal based tracing.

The proposal is to move the span creation (+ continuation) into middleware itself, and inject RootsSpan for Kleisli based routes.

If it's accepted, I can drop in few tests that verify that both IOLocal and Kleisli Trace implementations yield the same results.

@alexcardell
Copy link

👍 for this, we've been having to write little wrapper middlewares to do the parent span options

@mergify mergify bot added the http4s label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants