Closed Skye-31 closed 1 year ago
@evanderkoogh this is supported, no? https://github.com/evanderkoogh/otel-cf-workers/blob/main/src/sdk.ts#L130
Might be worth updating the readme with instructions on how to use this.
I am in the middle of a massive refactor and that particular code hasn't been released yet, so I haven't updated the readme just yet.
But I will absolutely do when the code is stable again.
This is now in the latest “alpha” release 1.0.0-alpha.3.
And way cooler than I expected, you can create a configuration for every single request, because you are passed the trigger for that request.
Following up from Discord, being able to define config similarly to how vite does it, via a function that takes
request
andenv
would be very useful!