File tree 1 file changed +6
-4
lines changed 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,12 @@ app = Starlette()
42
42
app.add_middleware(ElasticAPM)
43
43
----
44
44
45
- WARNING: If you are using any `BaseHTTPMiddleware` middleware, you must add them
46
- *before* the ElasticAPM middleware. This is because `BaseHTTPMiddleware` breaks
47
- `contextvar` propagation, as noted
48
- https://www.starlette.io/middleware/#limitations[here].
45
+ WARNING: `BaseHTTPMiddleware` breaks `contextvar` propagation, as noted
46
+ https://www.starlette.io/middleware/#limitations[here]. This means the
47
+ ElasticAPM middleware must be above any `BaseHTTPMiddleware` in the final
48
+ middleware list. If you're calling `add_middleware` repeatedly, add the
49
+ ElasticAPM middleware last. If you're passing in a list of middleware,
50
+ ElasticAPM should be first on that list.
49
51
50
52
To configure the agent using initialization arguments:
51
53
You can’t perform that action at this time.
0 commit comments