Skip to content

fix(instrumentation-pino): Allow control over logged fields#3356

Open
jnloureiro wants to merge 1 commit intoopen-telemetry:mainfrom
jnloureiro:main
Open

fix(instrumentation-pino): Allow control over logged fields#3356
jnloureiro wants to merge 1 commit intoopen-telemetry:mainfrom
jnloureiro:main

Conversation

@jnloureiro
Copy link

Which problem is this PR solving?

In some environments, automatic log processing expects certain field names to be present (or absent) in the log record or for the values to have specific complex formats.

Short description of the changes

The logKeys option now accepts partial custom keys to use the default values, and explicitly undefined values to remove the keys from the correlation record.

To prevent any breaking changes from being introduced, a new passLogCorrelationToMixin option has been added, which allows total control over the logged values through the mixin function. This option defaults to false.

@jnloureiro jnloureiro requested a review from a team as a code owner January 24, 2026 15:02
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 24, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: jnloureiro / name: jnloureiro (f585ff3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants