opentelemetry-angular-interceptor icon indicating copy to clipboard operation
opentelemetry-angular-interceptor copied to clipboard

Console output required in latest change

Open andreas-niemoeller-qhr opened this issue 7 months ago • 0 comments

This recent refactor to change the assembly of span exporters from dynamically adding them to the tracers span processors to passing them as an array in the constructor, can cause the parent application to stop all network requests. The 2nd element of the array returned by insertConsoleSpanExporter will be undefined if console output is configured as false. This causes the interceptor to configure an undefined span processor that will cause errors when attempted to be called with traces.

https://github.com/jufab/opentelemetry-angular-interceptor/blob/ab46ca4e14255acfa612a611e4fd55be7f830e29/projects/opentelemetry-interceptor/src/lib/interceptor/opentelemetry-http.interceptor.ts#L252

andreas-niemoeller-qhr avatar May 29 '25 05:05 andreas-niemoeller-qhr