opentelemetry-java-contrib icon indicating copy to clipboard operation
opentelemetry-java-contrib copied to clipboard

POC [Maven Extension] Capture Maven build logs using Otel Logs

Open cyrille-leclerc opened this issue 3 years ago • 2 comments

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. >

cyrille-leclerc avatar Jan 31 '22 09:01 cyrille-leclerc

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.

cyrille-leclerc avatar Feb 01 '22 16:02 cyrille-leclerc

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 avatar Mar 10 '22 15:03 cyrille-leclerc

@cyrille-leclerc did you want to keep this draft PR open? thx

trask avatar May 23 '23 21:05 trask

Closing this PR as I didn't see much demand for this I may reopen this work later

cyrille-leclerc avatar May 23 '23 21:05 cyrille-leclerc