opentelemetry-java-contrib
opentelemetry-java-contrib copied to clipboard
POC [Maven Extension] Capture Maven build logs using Otel Logs
Description:
Send Maven build logs via Otel Logs.
Note that we are in parallel capturing Jenkins Pipeline Logs using Otel Logs. The two efforts are similar:
- https://github.com/jenkinsci/opentelemetry-plugin/pull/304
Existing Issue(s):
< Link any applicable issues. >
Testing:
< Describe what testing was performed and any tests were added. >
Documentation:
< Describe the documentation added. Please be sure to modify relevant existing documentation if needed. >
Outstanding items:
< Anything that these changes are intentionally missing that will be needed or can be helpful in the future. >
Status: Capturing Maven logs will be more complex than just replacing the org.apache.maven.cli.event.ExecutionEventLogger
by an OtelLogsExecutionListener. We need to intercept "Logger" invocations, hopefully changing the implementation of the loggers to send to Otel logs.
Update: we are at the moment polishing the integration of CI logs with OpenTelemetry on a CI server, Jenkins, before moving forward on the integration of Maven Logs with OpenTelemetry. See https://github.com/jenkinsci/opentelemetry-plugin/blob/master/docs/build-logs.md
@cyrille-leclerc did you want to keep this draft PR open? thx
Closing this PR as I didn't see much demand for this I may reopen this work later