Closed hunterclarke closed 2 months ago
Hi,
I believe you're also running into the same issue as https://github.com/evanderkoogh/otel-cf-workers/issues/115#issuecomment-2041365703 - please see my comment there for a detailed explanation. The current solution is to pin opentelemetry/api to 1.6.x, which resolves to the same version that the lib uses internally, so it should work.
That fixed it. I'll close this in favor of the other issue. Thanks!
Hi! Having some trouble creating new tracers and spans.
You can see my handler here: https://github.com/spackleso/spackle/blob/main/apps/api/src/index.ts#L69 and my middleware here: https://github.com/spackleso/spackle/blob/main/apps/api/src/lib/hono/otel.ts
I believe the problem is similar to https://github.com/evanderkoogh/otel-cf-workers/issues/75. However, in this case, the global patch works fine for the
otel-cf-workers
tracers (I seefetchHandler
andexport
) but not for any outside of the library.So any traces coming from my custom tracer never make it to the exporter.
Any ideas? Thanks!