-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
enhancementAdditions or updates to featuresAdditions or updates to features
Milestone
Description
We should consider adding support for the OpenTelemetry Logging specification to Log4j API 3.x.
This would require:
- creating a new
log4j-otel
bridge that implementsLoggerProvider
, - enhance the Log4j API to help with implementation of
log4j-otel
. I am mostly concerned about theLogRecordBuilder#setContext
method, i.e. a way to programmatically inject context data into a logging event like we do withLogBuilder#withLocation
for the location data. We obviously don't expect users to add context data manually in their code, but some instrumentation can do it the same way we inject location with Log4j Transformer Maven plugin.
What do you think?
breedx-splk, tommyziegler, atoulme, mateuszrzeszutek, lmolkova and 1 more
Metadata
Metadata
Assignees
Labels
enhancementAdditions or updates to featuresAdditions or updates to features
Type
Projects
Status
To triage