We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80a699d commit b1aad22Copy full SHA for b1aad22
packages/opentelemetry-node/src/spanprocessor.ts
@@ -130,10 +130,7 @@ export class SentrySpanProcessor implements OtelSpanProcessor {
130
}
131
132
const message = attributes[SemanticAttributes.EXCEPTION_MESSAGE];
133
- if (!isString(message)) {
134
- return;
135
- }
136
- const syntheticError = new Error(message);
+ const syntheticError = new Error(message as string | undefined);
137
138
const stack = attributes[SemanticAttributes.EXCEPTION_STACKTRACE];
139
if (isString(stack)) {
0 commit comments