Method: OpenTelemetry::SDK::Configurator#use_all

Defined in:
lib/opentelemetry/sdk/configurator.rb

#use_all(instrumentation_config_map = {}) ⇒ Object

Install all registered instrumentation. Configuration for specific instrumentation can be provided with the optional +instrumentation_config_map+ parameter. Only +use+ or +use_all+, but not both when installing instrumentation. A call to +use+ after +use_all+ will result in an exception.

Parameters:

  • instrumentation_config_map (optional Hash<String,Hash>) (defaults to: {})

    A map with string keys representing the instrumentation name and values specifying the instrumentation config



115
116
117
118
# File 'lib/opentelemetry/sdk/configurator.rb', line 115

def use_all(instrumentation_config_map = {})
  check_use_mode!(USE_MODE_ALL)
  @instrumentation_config_map = instrumentation_config_map
end