class OpenTelemetry::Provider

Overview

Provider is an abstract superclass of other specific providers, such as the TraceProvider or the MetricsProvider. It supplies some common faculties for dealing with configuration.

Direct Known Subclasses

Defined in:

provider.cr
provider/configuration.cr
provider/configuration/factory.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(service_name : String = "", service_version : String = "", schema_url : String = "", exporter : Exporter | Nil = nil, sampler : Sampler = Sampler::AlwaysOn.new, id_generator = "unique") #

def self.new(config, &block : Configuration::Factory -> ) #

def self.new(&block : Configuration::Factory -> ) #

Instance Method Detail

def config : Configuration #

def configure!(new_config) #

def exporter #

def exporter=(val) #

def id_generator #

def id_generator=(val) #

def merge_configuration(secondary_config) #

def sampler #

def sampler=(val) #

def schema_url #

def schema_url=(val) #

def service_name #

def service_name=(val) #

def service_version #

def service_version=(val) #