feat(bunyan): added option to capture info logs#2651
Open
aryamohanan wants to merge 1 commit into
Open
Conversation
aryamohanan
force-pushed
the
feat-log-config
branch
3 times, most recently
from
July 16, 2026 12:59
4002c68 to
f630275
Compare
aryamohanan
force-pushed
the
feat-log-config
branch
from
July 17, 2026 04:59
f630275 to
f2fb0d4
Compare
aryamohanan
commented
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)); |
Contributor
Author
There was a problem hiding this comment.
aryamohanan
force-pushed
the
feat-log-config
branch
from
July 17, 2026 08:00
f2fb0d4 to
0b02171
Compare
aryamohanan
marked this pull request as ready for review
July 17, 2026 11:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
INSTANA_LOG_LEVEL_CAPTUREtracing.logLevelCaptureSupported values:
INFOWARN(default)ERROROFFLog capture behavior
INFOWARNERROROFFTODO
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