Class: OpenTelemetry::Instrumentation::Rails::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/opentelemetry/instrumentation/rails/railtie.rb

Overview

Railtie automatically configure the OpentTelemetry SDK

This railtie will set defaults for the following environment variables: OTEL_SERVICE_NAME - if unset, will default to the Rails application name OTEL_RESOURCE_ATTRIBUTES - if unset, will set the deployment environment to the current Rails environment

This will also set the OpenTelemetry.logger to the Rails logger.