Skip to content

Support bridging logs to OpenTelemetry API #47995

@ThomasVitale

Description

@ThomasVitale

Spring Boot offers nice abstractions to configure logs via a unified model. Furthermore, it offers great integrations and customisations for Logback and Log4J2.

The recent addition of structured logging brought many benefits. I wonder if the work that was done for that feature could lay the foundation for implementing a new feature supporting bridging the logs produced by SLF4J/Logback/Log4J2 via the OpenTelemetry API, considering that Spring Boot 4 comes with auto-configuration for OpenTelemetry Logging API and OpenTelemetry Logger Exporter API for OTLP (but no logs are actually exported).

Related/previous work:

As always, I'm happy to help any way I can, if this is something interesting for the project.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions