lib/elastic_apm/spies/mongo.rb in elastic-apm-2.10.1 vs lib/elastic_apm/spies/mongo.rb in elastic-apm-2.11.0
- old
+ new
@@ -12,11 +12,13 @@
)
end
# @api private
class Subscriber
- TYPE = 'db.mongodb.query'
+ TYPE = 'db'
+ SUBTYPE = 'mongodb'
+ ACTION = 'query'
def initialize
@events = {}
end
@@ -49,9 +51,11 @@
span =
ElasticAPM.start_span(
name,
TYPE,
+ subtype: SUBTYPE,
+ action: ACTION,
context: build_context(event)
)
@events[event.operation_id] = span
end