Class: Datadog::Tracing::Contrib::GRPC::Distributed::Fetcher
- Inherits:
-
Distributed::Fetcher
- Object
- Distributed::Fetcher
- Datadog::Tracing::Contrib::GRPC::Distributed::Fetcher
- Defined in:
- lib/datadog/tracing/contrib/grpc/distributed/fetcher.rb
Overview
Retrieves values from the gRPC metadata. One metadata key can be associated with multiple values.
Instance Method Summary collapse
Methods inherited from Distributed::Fetcher
Constructor Details
This class inherits a constructor from Datadog::Tracing::Distributed::Fetcher
Instance Method Details
#[](key) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/datadog/tracing/contrib/grpc/distributed/fetcher.rb', line 15 def [](key) # Metadata values are normally integrals but can also be # arrays when multiple values are associated with the same key. value = super(key) value.is_a?(::Array) ? value[0] : value end |