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

[View source]
def self.new(configuration) #

[View source]

Class Method Detail

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

[View source]
def self.build(service_name = unknown_service, service_version = "", schema_url = "", exporter = Exporter.new(:null), sampler = Sampler::AlwaysOn.new, id_generator = IdGenerator.new("unique"), &) #

[View source]
def self.build(service_name = unknown_service, service_version = "", schema_url = "", exporter = Exporter.new(:null), sampler = Sampler::AlwaysOn.new, id_generator = IdGenerator.new("unique")) #

[View source]

Instance Method Detail

def exporter : Exporter | Nil #

[View source]
def exporter=(exporter : Exporter | Nil) #

[View source]
def id_generator : IdGenerator #

[View source]
def id_generator=(id_generator : IdGenerator) #

[View source]
def sampler : Sampler #

[View source]
def sampler=(sampler : Sampler) #

[View source]
def schema_url : String #

[View source]
def schema_url=(schema_url : String) #

[View source]
def service_name : String #

[View source]
def service_name=(service_name : String) #

[View source]
def service_version : String #

[View source]
def service_version=(service_version : String) #

[View source]