Skip to content

Commit 0421c8c

Browse files
authored
provide http span to global middleware (#5492)
1 parent cb3d996 commit 0421c8c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/grumpy-seals-obey.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@effect/platform": patch
3+
---
4+
5+
provide http span to global middleware

packages/platform/src/HttpApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const toHandled = <E, R, _, EH, RH>(
100100
const withMiddleware = unify(
101101
middleware === undefined ?
102102
internalMiddleware.tracer(withErrorHandling) :
103-
Effect.matchCauseEffect(middleware(internalMiddleware.tracer(withErrorHandling)), {
103+
Effect.matchCauseEffect(internalMiddleware.tracer(middleware(withErrorHandling)), {
104104
onFailure: (cause): Effect.Effect<void, EH, RH> =>
105105
Effect.withFiberRuntime((fiber) => {
106106
const request = Context.unsafeGet(fiber.currentContext, ServerRequest.HttpServerRequest)

0 commit comments

Comments
 (0)