getsentry / getsentry/sentry-javascript

Make sure `@sentry/cloudflare` does not conflict with `@microlabs/otel-cf-workers`

Đang mở
#17,365 11 bình luận 0 reaction 0 người được giao Xem trên GitHub
Bug Cloudflare Workers OpenTelemetry
Ngôn ngữ chính
TypeScript
Star
8.7k
Fork
1.8k
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
523

Mô tả

### Description

https://www.npmjs.com/package/@microlabs/otel-cf-workers

From a user

> Regarding the SDK conflicts, I had tried wrapping the Cloudflare Worker's entrypoint with the withSentry utility from @sentry/cloudflare in combination with our existing OTEL instrumentation. When applying Sentry above OTEL, Sentry would properly capture errors but we no longer received any OTEL traces from our existing instrumentation. None of our OTEL spans reached the OTEL exporter. When applying OTEL above Sentry, the Sentry SDK would introduce a Promise still pending after request completion, which the Workers runtime does not allow and will abort. Both OTEL and Sentry are wrapping the Worker entrypoint in Proxy instances to intercept the function invocations and at various points cause the other's instrumentation to behave unexpectedly.

We need to make sure that our instrumentation does not conflict with the cloudflare otel instrumentation.

Related issue: https://github.com/getsentry/sentry-javascript/issues/13365

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.