opentelemetry-js icon indicating copy to clipboard operation
opentelemetry-js copied to clipboard

Give us the ability to set default option on SugaredTracer

Open Apokalypt opened this issue 1 year ago • 1 comments
trafficstars

Is your feature request related to a problem? Please describe.

I've just seen the new Tracer in the experiments (SugaredTracer). However, I'd like to avoid duplicating the function onException passed as parameter when using the tracer to start a span.

Describe the solution you'd like

I would like a way to set default options especially for the function onException instead of passing the same function every time when calling startSpan(...) & startActiveSpan(...)

Describe alternatives you've considered

NA

Additional context

NA

Apokalypt avatar Mar 07 '24 11:03 Apokalypt

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar May 13 '24 06:05 github-actions[bot]

This issue was closed because it has been stale for 14 days with no activity.

github-actions[bot] avatar Jun 03 '24 06:06 github-actions[bot]