ZIOpenTelemetry
com.augustnagro.magnum.ziomagnum.o11y.ZIOpenTelemetry
trait ZIOpenTelemetry
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ZIOApp
Members list
Type members
Types
Value members
Abstract methods
Concrete methods
The console log layer for the ZIOpenTelemetry trait.
The console log layer for the ZIOpenTelemetry trait.
Default implementation uses the default ZIO console logger, which logs to stdout. You can override this to use a different logger, e.g. SLF4J, Logback, etc. To use SLF4J, you can use the following layer:
def consoleLogLayer: ZLayer[Any, Nothing, Unit] = Runtime.removeDefaultLoggers >>> SLF4J.slf4j
Attributes
def otel4zLogging(instrumentationScopeName: String, logLevel: LogLevel = ...): URLayer[OpenTelemetry & ContextStorage, Unit]
def otel4zTracing(instrumentationScopeName: String, instrumentationVersion: Option[String] = ..., schemaUrl: Option[String] = ..., logAnnotated: Boolean = ...): ZLayer[OpenTelemetry & ContextStorage, Nothing, Tracing]
Concrete fields
The bootstrap layer for the ZIOpenTelemetry trait.
The bootstrap layer for the ZIOpenTelemetry trait.
This is the layer that will be used to bootstrap the ZIO application. It includes the OpenTelemetry layer, the Tracing layer, and the Meter layer.
Attributes
In this article