Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Content-Length: 258784 | pFad | https://github.com/openapi-ts/openapi-typescript/discussions/2254
6CFetched URL: https://github.com/openapi-ts/openapi-typescript/discussions/2254
Alternative Proxies:
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to pass custom options (such as metadata) to the
openapi-fetch
middleware? I need to collect HTTP status metrics for each fetch call, and for that, every defined method should be able to pass a custom option likemeta.metricPrefix
. My instrumentation middleware should then be able to access thismeta
option in order to record the status code using our OpenTelemetry backend.Here’s an example of how the client and middleware would look:
Beta Was this translation helpful? Give feedback.
All reactions