Skip to content
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

JSON logs don't work with canary releases #1277

Open
alexmuller opened this issue Nov 19, 2024 · 0 comments
Open

JSON logs don't work with canary releases #1277

alexmuller opened this issue Nov 19, 2024 · 0 comments
Labels
bug Something isn't working package: logger Relates to the logger package

Comments

@alexmuller
Copy link
Member

@Financial-Times/platforms want to set an environment of "canary" to differentiate OpenTelemetry metrics in their canary releases from the existing production metrics.

When they do this, the conditional in logger appInfo.environment !== 'production' means that logs are prettified before being drained to Splunk which means that we can't search on JSON fields.

Node.js version: 22
Impacted package(s): logger

Slack message

Steps to reproduce

  1. Set environment to "canary"
  2. Try to search production logs in a log aggregation tool like Splunk

Expected behaviour

Canary apps should behave like production apps.

@alexmuller alexmuller added bug Something isn't working package: logger Relates to the logger package labels Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working package: logger Relates to the logger package
Projects
None yet
Development

No branches or pull requests

1 participant