Sha256: 3cdc46e88cf31dc480134799ecbb177ffbfa283bde5a9651fbe916c6e308fe72
Contents?: true
Size: 736 Bytes
Versions: 18
Compression:
Stored size: 736 Bytes
Contents
# frozen_string_literal: true # Copyright The OpenTelemetry Authors # # SPDX-License-Identifier: Apache-2.0 module OpenTelemetry module Instrumentation module ActiveRecord module Patches # Module to prepend to ActiveRecord::Relation for instrumentation module RelationPersistence def update_all(*) tracer.in_span("#{model.name}.update_all") do super end end def delete_all(*) tracer.in_span("#{model.name}.delete_all") do super end end private def tracer ActiveRecord::Instrumentation.instance.tracer end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems