evanderkoogh / otel-cf-workers

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

Fix error when not using service bindings #60

Closed lboynton closed 1 year ago

lboynton commented 1 year ago

Fixes #59. Not sure if this is the right fix as I haven't tested with service bindings in place, but it makes the error go away for me :)

evanderkoogh commented 1 year ago

That is indeed not exactly the right fix, but thanks for finding where to fix it!

evanderkoogh commented 1 year ago

I created a better fix in https://github.com/evanderkoogh/otel-cf-workers/commit/45547b6508fb556c48ab275f691cd2422c693d22 and added you as a co-author :)