Closed Emily-Jiang closed 5 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
Main API access
package io.opentelemetry.api.logs
(opentelemetry-api, stable) with the following classes
LoggerProvider, LoggerBuilder, Logger, LogRecordBuilder, Serverity
- support all of these
DefaultLogger, DefaultLoggerProvider
(noop classes) - not needed
LoggerProvider
-@Inject LoggerProvider provider
This has been done. We have decided not to expose the Logging SPI. See minutes here on 20th May for the details.
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.