Sha256: 9dfb3f07aee2dfdc5c23e15b815a9c99816d20654e610d3acf99da35f48a1736
Contents?: true
Size: 761 Bytes
Versions: 1
Compression:
Stored size: 761 Bytes
Contents
# frozen_string_literal: true module ElasticAPM module Transport module Serializers # @api private class SpanSerializer < Serializer # rubocop:disable Metrics/MethodLength def build(span) { span: { id: span.id, transaction_id: span.transaction_id, parent_id: span.parent_id, name: span.name, type: span.type, duration: ms(span.duration), context: span.context&.to_h, stacktrace: span.stacktrace.to_a, timestamp: span.timestamp, trace_id: span.trace_id } } end # rubocop:enable Metrics/MethodLength end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
elastic-apm-2.0.1 | lib/elastic_apm/transport/serializers/span_serializer.rb |