class OpenTelemetry::Provider
- OpenTelemetry::Provider
- Reference
- Object
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.crprovider/configuration.cr
provider/configuration/factory.cr
Constructors
- .new(service_name : String = "", service_version : String = "", schema_url : String = "", exporter : Exporter | Nil = nil, sampler : Sampler = Sampler::AlwaysOn.new, id_generator = "unique")
- .new(config, &block : Configuration::Factory -> )
- .new(&block : Configuration::Factory -> )
Instance Method Summary
- #config : Configuration
- #configure!(new_config)
- #exporter
- #exporter=(val)
- #id_generator
- #id_generator=(val)
- #merge_configuration(secondary_config)
- #sampler
- #sampler=(val)
- #schema_url
- #schema_url=(val)
- #service_name
- #service_name=(val)
- #service_version
- #service_version=(val)
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")
#