evanderkoogh / otel-cf-workers

An OpenTelemetry compatible library for instrumenting and exporting traces for Cloudflare Workers
BSD 3-Clause "New" or "Revised" License
239 stars 50 forks source link

does this library off the same context.trace.fetch #3

Closed ad6025b closed 1 year ago

ad6025b commented 1 year ago

does this library off the same context.trace.fetch as the original library [workers-honeycomb-logger] ???

I need to wrap the 'fetch" calls (https://ross-hagan.com/blog/remix-cloudflare-and-honeycomb) image

evanderkoogh commented 1 year ago

One of the main selling points of creating this library based on the OTel spec and the new AsyncLocal functionality in the Workers is that we don't need to treat fetch any differently. Just use the regular fetch and the traces will automatically show up :)