Module: Datadog::Tracing::Contrib::GRPC

Defined in:
lib/datadog/tracing/contrib/grpc.rb,
lib/datadog/tracing/contrib/grpc/ext.rb,
lib/datadog/tracing/contrib/grpc/patcher.rb,
lib/datadog/tracing/contrib/grpc/formatting.rb,
lib/datadog/tracing/contrib/grpc/integration.rb,
lib/datadog/tracing/contrib/grpc/datadog_interceptor.rb,
lib/datadog/tracing/contrib/grpc/distributed/fetcher.rb,
lib/datadog/tracing/contrib/grpc/configuration/settings.rb,
lib/datadog/tracing/contrib/grpc/intercept_with_datadog.rb,
lib/datadog/tracing/contrib/grpc/distributed/propagation.rb,
lib/datadog/tracing/contrib/grpc/datadog_interceptor/client.rb,
lib/datadog/tracing/contrib/grpc/datadog_interceptor/server.rb

Overview

gRPC integration public API

Defined Under Namespace

Modules: Configuration, Ext

Class Method Summary collapse

Class Method Details

.extract(data) ⇒ Datadog::Tracing::TraceDigest?

Extract distributed headers from the given request

Parameters:

  • data (Hash)

    the request to extract from

Returns:



25
26
27
28
29
# File 'lib/datadog/tracing/contrib/grpc.rb', line 25

def self.extract(data)
  raise 'Please invoke Datadog.configure at least once before calling this method' unless @propagation

  @propagation.extract(data)
end

.inject(digest, data) ⇒ Object

Inject distributed headers into the given request

Parameters:



16
17
18
19
20
# File 'lib/datadog/tracing/contrib/grpc.rb', line 16

def self.inject(digest, data)
  raise 'Please invoke Datadog.configure at least once before calling this method' unless @propagation

  @propagation.inject!(digest, data)
end