Class: ElasticAPM::Transport::Serializers::SpanSerializer::ContextSerializer Private
- Inherits:
-
ElasticAPM::Transport::Serializers::Serializer
- Object
- ElasticAPM::Transport::Serializers::Serializer
- ElasticAPM::Transport::Serializers::SpanSerializer::ContextSerializer
- Defined in:
- lib/elastic_apm/transport/serializers/span_serializer.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary
Attributes inherited from ElasticAPM::Transport::Serializers::Serializer
Instance Method Summary collapse
- #build(context) ⇒ Object private
Methods inherited from ElasticAPM::Transport::Serializers::Serializer
Constructor Details
This class inherits a constructor from ElasticAPM::Transport::Serializers::Serializer
Instance Method Details
#build(context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
37 38 39 40 41 42 43 44 |
# File 'lib/elastic_apm/transport/serializers/span_serializer.rb', line 37 def build(context) return unless context { sync: context.sync }.tap do |base| base[:db] = build_db(context.db) if context.db base[:http] = build_http(context.http) if context.http end end |