@comprehend/telemetry-node 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -427,7 +427,8 @@ function extractErrorInfo(span) {
|
|
|
427
427
|
const message = attrs['exception.message'] ??
|
|
428
428
|
attrs['http.error_message'] ??
|
|
429
429
|
attrs['db.response.status_code'] ??
|
|
430
|
-
(isError ? attrs['otel.status_description'] : undefined)
|
|
430
|
+
(isError ? attrs['otel.status_description'] : undefined) ??
|
|
431
|
+
(isError ? span.status.message : undefined);
|
|
431
432
|
const type = attrs['exception.type'] ??
|
|
432
433
|
attrs['error.type'] ??
|
|
433
434
|
attrs['http.error_name'];
|
package/package.json
CHANGED
|
@@ -538,7 +538,8 @@ function extractErrorInfo(span: ReadableSpan): {
|
|
|
538
538
|
(attrs['exception.message'] as string | undefined) ??
|
|
539
539
|
(attrs['http.error_message'] as string | undefined) ??
|
|
540
540
|
(attrs['db.response.status_code'] as string | undefined) ??
|
|
541
|
-
(isError ? (attrs['otel.status_description'] as string | undefined) : undefined)
|
|
541
|
+
(isError ? (attrs['otel.status_description'] as string | undefined) : undefined) ??
|
|
542
|
+
(isError ? (span.status.message as string | undefined) : undefined);
|
|
542
543
|
const type =
|
|
543
544
|
(attrs['exception.type'] as string | undefined) ??
|
|
544
545
|
(attrs['error.type'] as string | undefined) ??
|