Module: Datadog::Tracing::Contrib::Registerable::ClassMethods
- Defined in:
- lib/datadog/tracing/contrib/registerable.rb
Overview
Class methods for registerable behavior
Instance Method Summary collapse
-
#register_as(name, registry: Contrib::REGISTRY, auto_patch: false, **options) ⇒ Object
Registers this integration in the global tracer registry.
Instance Method Details
#register_as(name, registry: Contrib::REGISTRY, auto_patch: false, **options) ⇒ Object
Registers this integration in the global tracer registry. Once registered, this integration can be activated with:
“‘ Datadog.configure do |c|
c.tracing.instrument :name
end “‘
33 34 35 |
# File 'lib/datadog/tracing/contrib/registerable.rb', line 33 def register_as(name, registry: Contrib::REGISTRY, auto_patch: false, **) registry.add(name, new(name, **), auto_patch) end |