jvz commented on issue #2027:
URL: 
https://github.com/apache/logging-log4j2/issues/2027#issuecomment-1841494845

   We've got a couple sides to metrics: defining metrics within Log4j itself, 
and direct support for OpenTelemetry APIs. As Log4j itself does not depend on 
anything besides the `java.base` module, we need some level of indirection to 
support the same thing OpenTelemetry is doing with the API/SDK split (no-op by 
default, require an actual metrics implementation to collect and forward them). 
I see that the Java OpenTelemetry API modules are designed similarly (not sure 
about the required Java modules there, but I assume they're similarly 
lightweight). Thus, I'd expect the default metrics plugin for Log4j to use 
OpenTelemetry since that makes it much easier to configure all those other 
integrations, though if third party extensions create plugins that directly use 
some vendor tool or whatever, that's also fine (but probably easier to do via 
OpenTelemetry).
   
   From a higher level, though, we'd like to consider how to best integrate 
with OpenTelemetry to aid with standardizing the operational side of things, 
but that's a different topic.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to