Module: NewRelic::Agent::OpenTelemetry::Segments::Datastore
- Included in:
- Trace::Tracer
- Defined in:
- lib/new_relic/agent/opentelemetry/segments/datastore.rb
Instance Method Summary collapse
Instance Method Details
#parse_operation(name, attributes) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/new_relic/agent/opentelemetry/segments/datastore.rb', line 10 def parse_operation(name, attributes) return attributes['db.operation'] if attributes['db.operation'] name_downcased = name.downcase return name_downcased if NewRelic::Agent::Database::KNOWN_OPERATIONS.include?(name_downcased) NewRelic::Agent::Database.parse_operation_from_query(attributes['db.statement']) if attributes['db.statement'] end |