Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Mar 19, 2024
1 parent 0f68238 commit 33a4f94
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/tracing/spanstatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function getSpanStatusFromHttpCode(httpStatus: number): SpanStatus {
}
}

return { code: SPAN_STATUS_ERROR, message: 'unknown_error' };
return { code: SPAN_STATUS_ERROR, message: '11111' };
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/utils/spanUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export function getStatusMessage(status: SpanStatus | undefined): string | undef
return 'ok';
}

return status.message || 'unknown_error';
return status.message || '222222';
}

const CHILD_SPANS_FIELD = '_sentryChildSpans';
Expand Down
2 changes: 1 addition & 1 deletion packages/opentelemetry/src/utils/mapStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ export function mapStatus(span: AbstractSpan): SpanStatus {
if (status && status.code === SpanStatusCode.UNSET) {
return { code: SPAN_STATUS_OK };
} else {
return { code: SPAN_STATUS_ERROR, message: 'unknown_error' };
return { code: SPAN_STATUS_ERROR, message: '333333' };
}
}

0 comments on commit 33a4f94

Please sign in to comment.