@elastic/opentelemetry-node
Version:
Elastic Distribution of OpenTelemetry Node.js (EDOT Node.js)
27 lines (26 loc) • 1.17 kB
TypeScript
/**
* Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier).
*
* @example staging
* @example production
*
* @note `deployment.environment.name` does not affect the uniqueness constraints defined through
* the `service.namespace`, `service.name` and `service.instance.id` resource attributes.
* This implies that resources carrying the following attribute combinations **MUST** be
* considered to be identifying the same service:
*
* - `service.name=frontend`, `deployment.environment.name=production`
* - `service.name=frontend`, `deployment.environment.name=staging`.
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_DEPLOYMENT_ENVIRONMENT_NAME: "deployment.environment.name";
/**
* The name of the deployment.
*
* @example deploy my app
* @example deploy-frontend
*
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
*/
export const ATTR_DEPLOYMENT_NAME: "deployment.name";