-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow the Spring starter to configure the OTel Logback appender from …
…system properties (open-telemetry#10355)
- Loading branch information
1 parent
3c01d90
commit e08ce94
Showing
6 changed files
with
188 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
44 changes: 44 additions & 0 deletions
44
...t-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"groups": [ | ||
{ | ||
"name": "otel" | ||
} | ||
], | ||
"properties": [ | ||
{ | ||
"name": "otel.instrumentation.logback-appender.experimental.capture-code-attributes", | ||
"type": "java.lang.Boolean", | ||
"description": "Enable the capture of source code attributes. Note that capturing source code attributes at logging sites might add a performance overhead.", | ||
"defaultValue": false | ||
}, | ||
{ | ||
"name": "otel.instrumentation.logback-appender.experimental.capture-marker-attribute", | ||
"type": "java.lang.Boolean", | ||
"description": "Enable the capture of Logback markers as attributes.", | ||
"defaultValue": false | ||
}, | ||
{ | ||
"name": "otel.instrumentation.logback-appender.experimental.capture-key-value-pair-attributes", | ||
"type": "java.lang.Boolean", | ||
"description": "Enable the capture of Logback key value pairs as attributes.", | ||
"defaultValue": false | ||
}, | ||
{ | ||
"name": "otel.instrumentation.logback-appender.experimental-log-attributes", | ||
"type": "java.lang.Boolean", | ||
"description": "Enable the capture of experimental log attributes thread.name and thread.id.", | ||
"defaultValue": false | ||
}, | ||
{ | ||
"name": "otel.instrumentation.logback-appender.experimental.capture-logger-context-attributes", | ||
"type": "java.lang.Boolean", | ||
"description": "Enable the capture of Logback logger context properties as attributes.", | ||
"defaultValue": false | ||
}, | ||
{ | ||
"name": "otel.instrumentation.logback-appender.experimental.capture-mdc-attributes", | ||
"type": "java.lang.String", | ||
"description": "Comma separated list of MDC attributes to capture. Use the wildcard character * to capture all attributes." | ||
} | ||
] | ||
} |
This file contains 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
This file contains 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
1 change: 1 addition & 0 deletions
1
smoke-tests-otel-starter/src/main/resources/application.properties
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
otel.instrumentation.logback-appender.experimental.capture-code-attributes=true |
This file contains 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