class OpenTelemetry::Provider::Configuration::Factory
- OpenTelemetry::Provider::Configuration::Factory
- Reference
- Object
Defined in:
provider/configuration/factory.crConstructors
- .new(service_name : String, service_version : String, schema_url : String, exporter : Nil | OpenTelemetry::Exporter, sampler : OpenTelemetry::Sampler, id_generator : OpenTelemetry::IdGenerator)
- .new(configuration)
Class Method Summary
- .build(new_config : Configuration, &block : Factory -> ) : Configuration
- .build(service_name = unknown_service, service_version = "", schema_url = "", exporter = Exporter.new(:null), sampler = Sampler::AlwaysOn.new, id_generator = IdGenerator.new("unique"), &)
- .build(service_name = unknown_service, service_version = "", schema_url = "", exporter = Exporter.new(:null), sampler = Sampler::AlwaysOn.new, id_generator = IdGenerator.new("unique"))
Instance Method Summary
- #exporter : Exporter | Nil
- #exporter=(exporter : Exporter | Nil)
- #id_generator : IdGenerator
- #id_generator=(id_generator : IdGenerator)
- #sampler : Sampler
- #sampler=(sampler : Sampler)
- #schema_url : String
- #schema_url=(schema_url : String)
- #service_name : String
- #service_name=(service_name : String)
- #service_version : String
- #service_version=(service_version : String)
Constructor Detail
def self.new(service_name : String, service_version : String, schema_url : String, exporter : Nil | OpenTelemetry::Exporter, sampler : OpenTelemetry::Sampler, id_generator : OpenTelemetry::IdGenerator)
#
Class Method Detail
def self.build(service_name = unknown_service, service_version = "", schema_url = "", exporter = Exporter.new(:null), sampler = Sampler::AlwaysOn.new, id_generator = IdGenerator.new("unique"), &)
#
def self.build(service_name = unknown_service, service_version = "", schema_url = "", exporter = Exporter.new(:null), sampler = Sampler::AlwaysOn.new, id_generator = IdGenerator.new("unique"))
#