-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the transport seems to break changing the log level #186
Comments
Hello @TreeOfLearning, sorry for the wait. I was able to reproduce your issue in plain JS, so ts-node is not the issue here. You will have to explicitly set the log level for each transform for this to work the way you expect it to:
Or like this:
This is not specific to pino-opentelemetry-transport though, You will see the same behaviour in similar combinations of different transports ... for example: run
compare it to:
|
It seems that using this transport prevents me from changing the pino default log level.
For example:
Gives the output:
[20:51:12.705] INFO (2543437): info
Whereas this:
Gives the output:
And my otel collector only ever receives the info log when the transport enabled.
Am I missing something obvious?
Perhaps worth mentioning I am writing this in typescript and running via ts-node. Perhaps that's an issue?
The text was updated successfully, but these errors were encountered: