OpenTelemetry::API::AbstractResource
Inherits OpenTelemetry::Sendable / Reference / Object
Constructors
new(attrs)
Create a new Resource that has been intialized by the provided key/value pairs.
This initialization will support any seed object that provides an #each method
which takes a two-argument block.
Instance methods
[]?(key)
Retrieve a value for a key in the Resource. Return nil instead of an exception if the key is not present.
attributes
Sourceattributes=(attributes : Hash(String, AnyAttribute))
Sourcedropped_attribute_count
Sourcedropped_attribute_count=(dropped_attribute_count : UInt32)
Sourceto_json(json : JSON::Builder)
Source