Skip to content

Conversation

@AbhiPrasad
Copy link
Member

ref getsentry/team-webplatform-meta#31

In OpenTelemetry, spans can have exception events.

Let's create Sentry errors from these exception events and send them to Sentry! We can link them to the parent transaction via trace context.

@AbhiPrasad AbhiPrasad requested a review from a team February 13, 2023 17:32
@AbhiPrasad AbhiPrasad self-assigned this Feb 13, 2023
@AbhiPrasad AbhiPrasad requested review from lforst and mydea and removed request for a team February 13, 2023 17:32
Copy link
Contributor

@lforst lforst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - is there a chance we double report errors now?

@AbhiPrasad
Copy link
Member Author

lgtm - is there a chance we double report errors now?

Good question - let me take a look to see how robust auto-instrumentation is.

Generally though it's no - since users have to manually call recordException.

@AbhiPrasad
Copy link
Member Author

Took a look - the answer is no for now, but we can re-evaluate if/when that changes.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 14, 2023

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 20.09 KB (+0.05% 🔺)
@sentry/browser - ES5 CDN Bundle (minified) 62.23 KB (+0.03% 🔺)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.71 KB (+0.05% 🔺)
@sentry/browser - ES6 CDN Bundle (minified) 55.37 KB (+0.04% 🔺)
@sentry/browser - Webpack (gzipped + minified) 20.44 KB (+0.03% 🔺)
@sentry/browser - Webpack (minified) 66.81 KB (+0.03% 🔺)
@sentry/react - Webpack (gzipped + minified) 20.47 KB (+0.03% 🔺)
@sentry/nextjs Client - Webpack (gzipped + minified) 47.9 KB (+0.02% 🔺)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 27.03 KB (+0.03% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 25.29 KB (+0.05% 🔺)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 42.51 KB (+0.05% 🔺)
@sentry/replay - Webpack (gzipped + minified) 36.67 KB (-0.6% 🔽)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 60.23 KB (+0.04% 🔺)
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 53.77 KB (+0.05% 🔺)

@AbhiPrasad AbhiPrasad force-pushed the abhi-add-otel-exception-events branch 2 times, most recently from 2518492 to a1fdc86 Compare February 14, 2023 11:40
@AbhiPrasad
Copy link
Member Author

woops accidentally rebased off of master - needed some git-fu to get that back

always set message

oof prettier

add otel context
@AbhiPrasad AbhiPrasad force-pushed the abhi-add-otel-exception-events branch from a1fdc86 to 44b37e3 Compare February 14, 2023 12:33
@AbhiPrasad AbhiPrasad merged commit a993786 into develop Feb 14, 2023
@AbhiPrasad AbhiPrasad deleted the abhi-add-otel-exception-events branch February 14, 2023 13:00
ramchaik pushed a commit to ramchaik/sentry-javascript that referenced this pull request Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants