View Source otel_resource (opentelemetry v1.4.0)
A Resource is attributes representing the entity producing telemetry. For example, by default the language (Erlang), name of this library (opentelemetry) and version of this library are included in the Resource.
This module provides the functional interface for working with the resource record.Link to this section Summary
Link to this section Types
-type key() :: unicode:latin1_binary() | atom().
-type schema_url() :: uri_string:uri_string().
-type t() :: #resource{} | undefined.
-type value() :: unicode:latin1_binary() | integer() | float() | boolean().
Link to this section Functions
-spec attributes(t()) -> otel_attributes:t() | undefined.
-spec schema_url(t()) -> schema_url() | undefined.