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
diag/setLogger has confusing warning which seems like an Error when logger gets overwritten.
Log sample:
As you can see in the above log, the first line ends with 'Error' keyword.
I think the below code cause this issue. Stack variable seems to start with Error
conststack=newError().stack??'<failed to generate stacktrace>';oldLogger.warn(`Current logger will be overwritten from ${stack}`);newLogger.warn(`Current logger will overwrite one already registered from ${stack}`);
diag/setLogger has confusing warning which seems like an Error when logger gets overwritten.
Log sample:
As you can see in the above log, the first line ends with 'Error' keyword.
I think the below code cause this issue. Stack variable seems to start with Error
https://github.com/open-telemetry/opentelemetry-js/blob/main/api/src/api/diag.ts#L97-L101
The text was updated successfully, but these errors were encountered: