feat(log4js): added option to capture info logs#2659
Open
aryamohanan wants to merge 2 commits into
Open
Conversation
7 tasks
aryamohanan
commented
Jul 17, 2026
aryamohanan
marked this pull request as ready for review
July 17, 2026 05:54
kirrg001
reviewed
Jul 17, 2026
kirrg001
reviewed
Jul 17, 2026
|
kirrg001
reviewed
Jul 23, 2026
aryamohanan
force-pushed
the
feat-log4js
branch
2 times, most recently
from
July 23, 2026 13:18
de33fe1 to
a79738e
Compare
Contributor
Author
|
I will merge this as 2 commits
|
aryamohanan
commented
Jul 24, 2026
| return originalLog.apply(this, arguments); | ||
| } | ||
|
|
||
| return instrumentedLog(this, data, originalLog, level); |
Contributor
Author
There was a problem hiding this comment.
Suggested change
| return instrumentedLog(this, data, originalLog, level); | |
| return instrumentedLog(this, data, originalLog, levelName); |
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 log4js. By default, log capture starts at WARN and above. When configured, INFO logs can also be captured.
Reference: https://github.com/log4js-node/log4js-node/blob/master/lib/levels.js#L96
https://log4js-node.github.io/log4js-node/api.html
Configuration
The log capture level can be configured using either:
INSTANA_TRACING_CAPTURE_LOG_LEVELtracing.captureLogLevelSupported values:
INFOWARN(default)ERROROFFLog capture behavior
INFOWARNERROROFFref: https://jsw.ibm.com/browse/INSTA-101942
tech spec: https://github.ibm.com/instana/technical-documentation/blob/master/tracing/specification/README.md#log-spans