class OpenTelemetry::Provider::Configuration
- OpenTelemetry::Provider::Configuration
- Reference
- Object
Overview
This class encapsulates the configuration for a TraceProvider.
Defined in:
provider/configuration.crprovider/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 : IdGenerator = IdGenerator.new("unique"))
- .new(service_name : String = "", service_version : String = "", schema_url : String = "", exporter : Exporter | Nil = nil, sampler : Sampler = Sampler::AlwaysOn.new, id_generator : String = "unique")
Class Method Summary
- .default_exporter_instance
-
.default_sampler_instance
The Sampler code all feels kind of bodgey.
- .default_schema_url
- .default_service_name
- .default_service_version
- .default_traces_exporter
- .default_traces_sampler
- .default_traces_sampler_arg
- .get_sampler_class_from_name(name)
- .get_sampler_instance_from_class_and_arg(klass, arg = nil)
Instance Method Summary
- #exporter : Exporter | Nil
- #exporter=(exporter : Exporter | Nil)
-
#finalize
Ensure that any resources, like fibers, are shut down when a TracerProvider object is collected.
- #id_generator : IdGenerator
- #id_generator=(id_generator : IdGenerator)
- #sampler : Sampler
- #sampler=(sampler : Sampler)
- #schema_url : String
- #schema_url=(schema_url : String)
- #service_name : String
- #service_name=(service_name : String)
- #service_version : String
- #service_version=(service_version : String)
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 : IdGenerator = IdGenerator.new("unique"))
#
def self.new(service_name : String = "", service_version : String = "", schema_url : String = "", exporter : Exporter | Nil = nil, sampler : Sampler = Sampler::AlwaysOn.new, id_generator : String = "unique")
#
Class Method Detail
def self.default_sampler_instance
#
The Sampler code all feels kind of bodgey. It should be revisited, though maybe that will come naturally when all of the SDK code is surgically separated from the API code.
Instance Method Detail
def finalize
#
Ensure that any resources, like fibers, are shut down when a TracerProvider object is collected.