-
-
Notifications
You must be signed in to change notification settings - Fork 0
Generate errors from OpenTelemetry data #31
Copy link
Copy link
Open
Labels
GroomingBacklog Grooming CandidateBacklog Grooming Candidate
Description
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.
Span span = myTracer.startSpan(/*...*/);
try {
// Code that does the actual work which the Span represents
} catch (Throwable e) {
span.recordException(e, Attributes.of("exception.escaped", true));
throw e;
} finally {
span.end();
}The advantage of doing this is that we'll get this working out of the box for users who already have errors instrumented with OpenTelemetry.
### OpenTelemetry Exceptions
- [ ] https://github.com/getsentry/develop/pull/837
- [ ] https://github.com/getsentry/sentry-javascript/pull/7165
- [ ] https://github.com/getsentry/develop/pull/838
- [ ] Python
- [ ] Ruby
- [ ] Java
- [ ] Go
- [ ] Update product to indicate to users that the error event comes from an otel SDK
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
GroomingBacklog Grooming CandidateBacklog Grooming Candidate
Fields
Give feedbackNo fields configured for issues without a type.