Module: OpenTelemetry::Instrumentation::PG::Patches::Connection
- Defined in:
- lib/opentelemetry/instrumentation/pg/patches/connection.rb
Overview
Module to prepend to PG::Connection for instrumentation
Constant Summary collapse
- TABLE_NAME =
Capture the first word (including letters, digits, underscores, & '.', ) that follows common table commands
/\b(?:FROM|INTO|UPDATE|CREATE\s+TABLE(?:\s+IF\s+NOT\s+EXISTS)?|DROP\s+TABLE(?:\s+IF\s+EXISTS)?|ALTER\s+TABLE(?:\s+IF\s+EXISTS)?)\s+([\w\.]+)/i