struct OpenTelemetry::InstrumentationDocumentation::CrystalDB
- OpenTelemetry::InstrumentationDocumentation::CrystalDB
- Struct
- Value
- Object
Overview
OpenTelemetry::Instrumentation::CrystalDB
Instruments
- DB::Statement
Reference: http://crystal-lang.github.io/crystal-db/api/latest/DB.html
This instrumentation will trace any database interactions that subclass from the Crystal standard DB
class/shard.
Methods Affected
No methods are being overridden. The DB package provides a built-in way of wrapping queries, via
the DB::Statement#def_around_query_or_exec
macro. This functionality simply leverages that.
http://crystal-lang.github.io/crystal-db/api/latest/DB/Statement.html
Configuration
-
OTEL_CRYSTAL_DISABLE_INSTRUMENTATION_DB
If set, this will disable the
DB
instrumentation.
Version Restrictions
- DB >= 0.10.0