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

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

[View source]
def self.new(&block : Configuration::Factory -> ) #

[View source]

Instance Method Detail

def config : Configuration #

[View source]
def configure!(new_config) #

[View source]
def exporter #

[View source]
def exporter=(val) #

[View source]
def id_generator #

[View source]
def id_generator=(val) #

[View source]
def merge_configuration(secondary_config) #

[View source]
def sampler #

[View source]
def sampler=(val) #

[View source]
def schema_url #

[View source]
def schema_url=(val) #

[View source]
def service_name #

[View source]
def service_name=(val) #

[View source]
def service_version #

[View source]
def service_version=(val) #

[View source]