|
ORE Studio 0.0.4
|
Represents the entity producing telemetry data. More...
#include <resource.hpp>

Static Public Member Functions | |
| static resource | from_environment (std::string_view service_name, std::string_view service_version) |
| Creates a resource by detecting the local environment. | |
Public Attributes | |
| attributes | attrs |
| Key-value pairs describing the resource. | |
Represents the entity producing telemetry data.
A resource describes the source of telemetry data, typically representing a machine, service instance, or process. Resources are created once at startup and shared across all telemetry data produced by that entity.
This follows OpenTelemetry's resource semantic conventions.
|
static |
Creates a resource by detecting the local environment.
This performs local derivation of the machine identity by hashing stable system properties (hostname, MAC addresses, etc.).
| service_name | The logical name of the service. |
| service_version | The version of the service. |

| attributes attrs |
Key-value pairs describing the resource.
Standard OpenTelemetry resource attributes include: