opentelemetry-java-instrume.../javaagent
Mateusz Rzeszutek 04f2e3e9e5
Bridge agent logs into application's slf4j logger (#7339)
Related discussion #7257
Resolves #3413
Resolves #5059
Resolves #6258
Resolves #7179

Adds a logging implementation that'll collect agent logs in memory until
slf4j is detected in the instrumented application; and when that happens
will dump all the logs into the application slf4j and log directly to
the application logger from that time on.

It's still in a POC state, unfortunately: while it works fine with an
app that uses & initializes slf4j directly, Spring Boot applications
actually reconfigure the logging implementation (e.g. logback) a while
after slf4j is loaded; which causes all the startup agent logs (debug
included) to be dumped with the default logback pattern.

Future work:
* ~~Make sure all logs produces by the agent are sent to loggers named
`io.opentelemetry...`
(https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/7446)~~
DONE
* Make this work on Spring Boot
* Documentation
* Smoke test?
2023-04-04 17:29:43 +02:00
..
src/test Enable PrivateConstructorForUtilityClass errorprone check (#6427) 2022-08-10 11:30:22 +03:00
README.md Rename javaagent modules (#952) 2020-08-12 22:50:14 -07:00
build.gradle.kts Bridge agent logs into application's slf4j logger (#7339) 2023-04-04 17:29:43 +02:00
gradle.properties Mark all non-javaagent artifacts as -alpha version. (#2286) 2021-02-15 16:49:37 -08:00
license-normalizer-bundle.json Better license grouping (#2297) 2021-02-16 09:00:08 -08:00

README.md

Java Agent for Auto Instrumentation