Skip to content

feat(bunyan): added option to capture info logs#2651

Open
aryamohanan wants to merge 1 commit into
mainfrom
feat-log-config
Open

feat(bunyan): added option to capture info logs#2651
aryamohanan wants to merge 1 commit into
mainfrom
feat-log-config

Conversation

@aryamohanan

@aryamohanan aryamohanan commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR adds support for capturing info-level logs for Bunyan. By default, log capture starts at WARN and above. When configured, INFO logs can also be captured.

Reference: https://www.npmjs.com/package/bunyan#levels

Configuration

The log capture level can be configured using either:

  • Environment variable: INSTANA_LOG_LEVEL_CAPTURE
  • In-code configuration: tracing.logLevelCapture

Supported values:

  • INFO
  • WARN (default)
  • ERROR
  • OFF

Log capture behavior

Configuration Captured log levels
INFO INFO, WARN, ERROR, FATAL
WARN WARN, ERROR, FATAL
ERROR ERROR, FATAL
OFF No log spans are captured.

TODO

ref: https://jsw.ibm.com/browse/INSTA-101942
tech spec: https://github.ibm.com/instana/technical-documentation/blob/master/tracing/specification/README.md#log-spans

@aryamohanan
aryamohanan force-pushed the feat-log-config branch 3 times, most recently from 4002c68 to f630275 Compare July 16, 2026 12:59
@aryamohanan aryamohanan removed the WIP label Jul 17, 2026
@aryamohanan aryamohanan changed the title feat: added option to capture info logs feat(bunyan): added option to capture info logs Jul 17, 2026
shimmer.wrap(Logger.prototype, 'warn', shimLog(false));
shimmer.wrap(Logger.prototype, 'error', shimLog(true));
shimmer.wrap(Logger.prototype, 'fatal', shimLog(true));
shimmer.wrap(Logger.prototype, 'info', shimLog(LOG_LEVEL.INFO));

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aryamohanan
aryamohanan marked this pull request as ready for review July 17, 2026 11:20
@aryamohanan
aryamohanan requested a review from a team as a code owner July 17, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant