Class: Instana::Exporter::Otlp::ConverterFactory
- Inherits:
-
Object
- Object
- Instana::Exporter::Otlp::ConverterFactory
- Defined in:
- lib/instana/exporter/otlp/converter_factory.rb
Overview
Factory class for creating appropriate OTLP span converters based on span type
Constant Summary collapse
- SPAN_TYPES =
Span type constants
{ http: 'http', database: 'database', messaging: 'messaging', background_job: 'background_job', aws: 'aws', rpc: 'rpc', rails: 'rails', graphql: 'graphql', custom: 'custom' }.freeze
Class Method Summary collapse
-
.create(span) ⇒ BaseConverter
Create a converter for the given span.
Class Method Details
.create(span) ⇒ BaseConverter
Create a converter for the given span
40 41 42 43 44 45 |
# File 'lib/instana/exporter/otlp/converter_factory.rb', line 40 def create(span) span_type = determine_span_type(span) converter_class = get_converter_class(span_type) converter_class.new(span) end |