struct OpenTelemetry::InstrumentationDocumentation::CrystalLog
- OpenTelemetry::InstrumentationDocumentation::CrystalLog
- Struct
- Value
- Object
Overview
OpenTelemetry::Instrumentation::CrystalLog
Instruments
- Log
Reference: https://crystal-lang.org/api/1.4.0/Log.html
This instrument will record logs generated with Log
as events in the current span. If there
is no current span, the instrument is a NOP. In either case, configured logging then procedes
as expected.
Configuration
-
OTEL_CRYSTAL_DISABLE_INSTRUMENTATION_LOG
If set, this will disable the
Log
instrumentation.
Version Restrictions
- Crystal >= 1.0.0
Methods Affected
-
Attach the trace log event to the current span.
-
Attach the debug log event to the current span.
-
Attach the info log event to the current span.
-
Attach the notice log event to the current span.
-
Attach the warn log event to the current span.
-
Attach the error log event to the current span.
-
Attach the fatal log event to the current span.