File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';
44import { ATTR_SERVICE_NAME , ATTR_SERVICE_VERSION } from '@opentelemetry/semantic-conventions' ;
55import { version } from './package.js' ;
66import { OTEL_TRACES_URL , DEFAULT_FETCH_TIMEOUT } from './constants.js' ;
7- import { isDefined } from '../../../core/src/utils/is-defined.js' ;
87import { ulid } from 'ulid' ;
98
109import type { CloudEvents } from '@redocly/cli-opentelemetry' ;
@@ -50,7 +49,7 @@ export class OtelServerTelemetry {
5049
5150 for ( const [ key , value ] of Object . entries ( cloudEvent . data ) ) {
5251 const keySnakeCase = key . replace ( / ( [ A - Z ] ) / g, '_$1' ) . toLowerCase ( ) ;
53- if ( isDefined ( value ) ) {
52+ if ( value !== undefined ) {
5453 attributes [ `cloudevents.event_data.${ keySnakeCase } ` ] = value ;
5554 }
5655 }
You can’t perform that action at this time.
0 commit comments