Skip to content

Commit

Permalink
Add log4j-context-data.add-baggage flag to metadata (#1861)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit committed May 29, 2024
1 parent df13c04 commit fdfd1cb
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1712,6 +1712,18 @@ Some instrumentations (e.g. Spring Web MVC instrumentation) produce SpanKind.Int
SettingType.STRING,
SettingCategory.INSTRUMENTATION));

// https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/log4j/log4j-context-data/log4j-context-data-2.17/javaagent/README.md
/*
| `otel.instrumentation.log4j-context-data.add-baggage` | Boolean | `false` | Enable exposing baggage attributes through MDC. |
*/
settings.add(
setting(
"otel.instrumentation.log4j-context-data.add-baggage",
"Enable exposing baggage attributes through MDC.",
"false",
SettingType.BOOLEAN,
SettingCategory.INSTRUMENTATION));

// https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/log4j/log4j-context-data/log4j-context-data-2.17/javaagent/README.md
// https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/log4j/log4j-mdc-1.2/javaagent/README.md
/*
Expand Down

0 comments on commit fdfd1cb

Please sign in to comment.