Class: OpenTelemetry::Instrumentation::ActionPack::Instrumentation

Inherits:
Base
  • Object
show all
Defined in:
lib/opentelemetry/instrumentation/action_pack/instrumentation.rb

Overview

The Instrumentation class contains logic to detect and install the ActionPack instrumentation

Installation and configuration of this instrumentation is done within the OpenTelemetry::SDK#configure block, calling use() or use_all().

Configuration keys and options

:span_naming

Specifies how the span names are set. Can be one of:

  • :semconv (default) - The span name will use HTTP semantic conventions 'http.route', for example GET /users/:id
  • :class - The span name will appear as '#', for example UsersController#show.

Examples:

An explicit default configuration

OpenTelemetry::SDK.configure do |c|
  c.use_all({
    'OpenTelemetry::Instrumentation::ActionPack' => {
      span_naming: :class
    },
  })
end

Constant Summary collapse

MINIMUM_VERSION =
Gem::Version.new('7')