@payloops/observability 0.0.8 → 0.0.9
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.
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -366,7 +366,11 @@ var traceMixin = () => {
|
|
|
366
366
|
};
|
|
367
367
|
function emitToOtel(logRecord) {
|
|
368
368
|
try {
|
|
369
|
-
const
|
|
369
|
+
const provider = logs2.getLoggerProvider();
|
|
370
|
+
if (provider.constructor.name === "ProxyLoggerProvider") {
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
const otelLogger = provider.getLogger(SERVICE_NAME);
|
|
370
374
|
const span = trace.getActiveSpan();
|
|
371
375
|
const spanContext = span?.spanContext();
|
|
372
376
|
otelLogger.emit({
|