OpenTelemetry::InstrumentationDocumentation::CrystalLog
Inherits Struct / Value / Object
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_LOGIf set, this will disable the
Loginstrumentation.
Version Restrictions
- Crystal >= 1.0.0
Methods Affected
-
Log#traceAttach the trace log event to the current span.
-
Log#debugAttach the debug log event to the current span.
-
Log#infoAttach the info log event to the current span.
-
Log#noticeAttach the notice log event to the current span.
-
Log#warnAttach the warn log event to the current span.
-
Log#errorAttach the error log event to the current span.
-
Log#fatalAttach the fatal log event to the current span.
Constructors
new
SourceInstance methods
initialize
Source