You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide the code you used to setup the OpenTelemetry SDK
// index.jsconstopentelemetry=require('@opentelemetry/api');const{ BasicTracerProvider }=require('@opentelemetry/sdk-trace-base');newBasicTracerProvider().register();constspan=opentelemetry.trace.getTracer('default').startSpan('foo');span.setAttribute('key','value');span.addEvent('some-event-1');span.addEvent('some-event-2');span.addEvent('some-event-3');// the span has 1 event even though it's been run with OTEL_SPAN_EVENT_COUNT_LIMIT=0span.end();
What did you do?
I started the script with OTEL_SPAN_EVENT_COUNT_LIMIT set to 0 env OTEL_SPAN_EVENT_COUNT_LIMIT=0 node index.js
Please answer these questions before submitting a bug report.
What version of OpenTelemetry are you using?
"@opentelemetry/api": "1.0.3",
"@opentelemetry/sdk-trace-base": "1.0.1"
What version of Node are you using?
v16.13.0.
Please provide the code you used to setup the OpenTelemetry SDK
What did you do?
I started the script with OTEL_SPAN_EVENT_COUNT_LIMIT set to 0
env OTEL_SPAN_EVENT_COUNT_LIMIT=0 node index.js
What did you expect to see?
I expected to have no events in the span
What did you see instead?
There is one event ('some-event-3') in the span
Additional context
I think the problem exists here.
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: