eclipse / microprofile-telemetry

microprofile telemetry
Apache License 2.0
19 stars 18 forks source link

Adopt OpenTelemetry Logging #146

Closed Emily-Jiang closed 5 months ago

Emily-Jiang commented 11 months ago

Description

As a:

...I need to be able to:

use OpenTelemetry Logging in MicroProfile

...which enables me to:

have a consistent obs to have logging, metrics and tracing working together.

Emily-Jiang commented 11 months ago

The OpenTelemetry Logs bridge API exists to enable briding logs from other log frameworks (e.g. SLF4J, Log4j, JUL, Logback,e tc) into OpenTelemetry. It does not define new Log APIs. The following shows the entry points.

LoggerProvider (provider.loggerBuilder(instrumentationScopeName)
    -> LoggerBuilder  (loggerBuilder.build())
      ->Logger (logger.logRecordBuilder)
        ->LogRecordBuilder

Supported API Classes

Main API access

Supported the injection

Emily-Jiang commented 5 months ago

This has been done. We have decided not to expose the Logging SPI. See minutes here on 20th May for the details.