class OpenTelemetry::Provider::Configuration::Factory

Defined in:

provider/configuration/factory.cr

Constructors

Class Method Summary

Instance Method Summary

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) #

def self.new(configuration) #

Class Method Detail

def self.build(new_config : Configuration, &block : Factory -> ) : Configuration #

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")) #

Instance Method Detail

def exporter : Exporter | Nil #

def exporter=(exporter : Exporter | Nil) #

def id_generator : IdGenerator #

def id_generator=(id_generator : IdGenerator) #

def sampler : Sampler #

def sampler=(sampler : Sampler) #

def schema_url : String #

def schema_url=(schema_url : String) #

def service_name : String #

def service_name=(service_name : String) #

def service_version : String #

def service_version=(service_version : String) #