We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems that using this transport prevents me from changing the pino default log level.
For example:
import pino from 'pino'; const logger = pino({ transport: { targets: [ { target: 'pino-pretty', options: { colorize: true }, }, { target: 'pino-opentelemetry-transport', options: { resourceAttributes: { 'service.name': 'whatever', }, }, }, ] } }); logger.level = "trace"; logger.trace("trace"); logger.debug("debug"); logger.info("info");
Gives the output: [20:51:12.705] INFO (2543437): info
[20:51:12.705] INFO (2543437): info
Whereas this:
import pino from 'pino'; const logger = pino({ transport: { targets: [ { target: 'pino-pretty', options: { colorize: true }, }, /* { target: 'pino-opentelemetry-transport', options: { resourceAttributes: { 'service.name': 'whatever', }, }, }, */ ] } }); logger.level = "trace"; logger.trace("trace"); logger.debug("debug"); logger.info("info");
Gives the output:
[20:54:06.302] TRACE (2543472): trace [20:54:06.303] DEBUG (2543472): debug [20:54:06.303] INFO (2543472): info
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:
No branches or pull requests
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: