Sha256: da6bca7d4a381ebdcac9c8e84f7a212c169bec8e42261828b2d5fff1fe53162f
Contents?: true
Size: 944 Bytes
Versions: 4
Compression:
Stored size: 944 Bytes
Contents
# frozen_string_literal: true # Copyright The OpenTelemetry Authors # # SPDX-License-Identifier: Apache-2.0 module OpenTelemetry module Instrumentation module Gruf # The Instrumentation class contains logic to detect and install the Gruf instrumentation class Instrumentation < OpenTelemetry::Instrumentation::Base install do |_config| require_dependencies end option :peer_service, default: nil, validate: :string option :grpc_ignore_methods_on_client, default: [], validate: :array option :grpc_ignore_methods_on_server, default: [], validate: :array option :allowed_metadata_headers, default: [], validate: :array present do defined?(::Gruf) end private def require_dependencies require_relative 'interceptors/client' require_relative 'interceptors/server' end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems