Sha256: c256c31ebe5ac04b6908a765d3786f2f966abce37e956b655b2772a5a3f2d840

Contents?: true

Size: 611 Bytes

Versions: 14

Compression:

Stored size: 611 Bytes

Contents

# frozen_string_literal: true

# Copyright The OpenTelemetry Authors
#
# SPDX-License-Identifier: Apache-2.0

module OpenTelemetry
  module Instrumentation
    module Koala
      module Patches
        # Module to prepend to Koala::Facebook::API for instrumentation
        module Api
          def graph_call(path, args = {}, verb = 'get', options = {}, &post_processing)
            OpenTelemetry::Common::HTTP::ClientContext.with_attributes('peer.service' => 'facebook', 'koala.verb' => verb, 'koala.path' => path) do
              super
            end
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
opentelemetry-instrumentation-koala-0.20.6 lib/opentelemetry/instrumentation/koala/patches/instrumentation.rb
opentelemetry-instrumentation-koala-0.20.5 lib/opentelemetry/instrumentation/koala/patches/instrumentation.rb
opentelemetry-instrumentation-koala-0.20.3 lib/opentelemetry/instrumentation/koala/patches/instrumentation.rb
opentelemetry-instrumentation-koala-0.20.2 lib/opentelemetry/instrumentation/koala/patches/instrumentation.rb
opentelemetry-instrumentation-koala-0.20.1 lib/opentelemetry/instrumentation/koala/patches/instrumentation.rb
opentelemetry-instrumentation-koala-0.20.0 lib/opentelemetry/instrumentation/koala/patches/instrumentation.rb
opentelemetry-instrumentation-koala-0.19.1 lib/opentelemetry/instrumentation/koala/patches/instrumentation.rb
opentelemetry-instrumentation-koala-0.19.0 lib/opentelemetry/instrumentation/koala/patches/instrumentation.rb
opentelemetry-instrumentation-koala-0.18.5 lib/opentelemetry/instrumentation/koala/patches/instrumentation.rb
opentelemetry-instrumentation-koala-0.18.4 lib/opentelemetry/instrumentation/koala/patches/instrumentation.rb
opentelemetry-instrumentation-koala-0.18.3 lib/opentelemetry/instrumentation/koala/patches/instrumentation.rb
opentelemetry-instrumentation-koala-0.18.2 lib/opentelemetry/instrumentation/koala/patches/instrumentation.rb
opentelemetry-instrumentation-koala-0.18.1 lib/opentelemetry/instrumentation/koala/patches/instrumentation.rb
opentelemetry-instrumentation-koala-0.18.0 lib/opentelemetry/instrumentation/koala/patches/instrumentation.rb