getsentry / getsentry/sentry-javascript

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

未关闭
#17,365 11 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Bug Cloudflare Workers OpenTelemetry
主要语言
TypeScript
星标
8.7k
派生
1.8k
平均合并
1 天 17 小时
30 天内合并 PR
523

描述

### 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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。