class ElasticAPM::Instrumenter
def update_span_metrics(span)
def update_span_metrics(span) return unless span.transaction.collect_metrics? tags = { 'span.type': span.type, 'transaction.name': span.transaction.name, 'transaction.type': span.transaction.type } tags[:'span.subtype'] = span.subtype if span.subtype @metrics.get(:breakdown).timer( :'span.self_time.sum.us', tags: tags, reset_on_collect: true ).update(span.self_time) @metrics.get(:breakdown).counter( :'span.self_time.count', tags: tags, reset_on_collect: true ).inc! end