![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | build/ | a year ago | - | |
![]() | LICENSE | a year ago | 11K | |
![]() | README.md | a year ago | 2.1K | 595aea1 more query options + view options [كارل مبارك] |
![]() | package.json | a year ago | 3.7K | afd0ccc remove unused [كارل مبارك] |
The OpenTelemetry Resource is an immutable representation of the entity producing telemetry. For example, a process producing telemetry that is running in a container on Kubernetes has a Pod name, it is in a namespace and possibly is part of a Deployment which also has a name. All three of these attributes can be included in the Resource
.
This document defines standard attributes for resources which are accessible via @opentelemetry/semantic-conventions
.
npm install --save @opentelemetry/resources
import { SEMRESATTRS_SERVICE_NAME } from '@opentelemetry/semantic-conventions';
import { Resource } from '@opentelemetry/resources';
const resource = new Resource({
[SEMRESATTRS_SERVICE_NAME]: 'api-service',
});
const anotherResource = new Resource({
'service.version': '2.0.0',
'service.group': 'instrumentation-group'
});
const mergedResource = resource.merge(anotherResource);
Apache 2.0 - See LICENSE for more information.