Sha256: 2987fc8c70d7d2d34f64443415b7e1b02780fad82439bc938ed9364b0d252525
Contents?: true
Size: 901 Bytes
Versions: 11
Compression:
Stored size: 901 Bytes
Contents
require 'ddtrace/contrib/configuration/settings' require 'ddtrace/contrib/active_record/ext' require 'ddtrace/contrib/active_record/utils' module Datadog module Contrib module ActiveRecord module Configuration # Custom settings for the ActiveRecord integration class Settings < Contrib::Configuration::Settings option :orm_service_name option :service_name, depends_on: [:tracer] do |value| (value || Utils.adapter_name).tap do |service_name| tracer.set_service_info(service_name, Ext::APP, Datadog::Ext::AppTypes::DB) end end option :tracer, default: Datadog.tracer do |value| value.tap do Events.subscriptions.each do |subscription| subscription.tracer = value end end end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems