Sha256: 5916b9b100cfef437b937517471dadf4e8840a548db80998f925cf9a675ee9a1
Contents?: true
Size: 620 Bytes
Versions: 3
Compression:
Stored size: 620 Bytes
Contents
# frozen_string_literal: true # Copyright The OpenTelemetry Authors # # SPDX-License-Identifier: Apache-2.0 module OpenTelemetry module Instrumentation module ActiveModelSerializers # :nodoc: def self.subscribe Instrumentation.instance.subscribe end if defined?(::Rails::Railtie) # This Railtie sets up subscriptions to relevant ActiveModelSerializers notifications class Railtie < ::Rails::Railtie config.after_initialize do ::OpenTelemetry::Instrumentation::ActiveModelSerializers.subscribe end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems