/ student-intifada / node_modules / @opentelemetry / resources /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]build/a year ago -  
[   ]LICENSEa year ago 11K 
[TXT]README.mda year ago2.1K595aea1 more query options + view options [كارل مبارك]
[   ]package.jsona year ago3.7Kafd0ccc remove unused [كارل مبارك]
README.md

OpenTelemetry Resources Util

NPM Published Version Apache License

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.

Installation

npm install --save @opentelemetry/resources

Usage

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);

License

Apache 2.0 - See LICENSE for more information.

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80