From b09d612136a828a3191637f6e070bc4bc01b2ec9 Mon Sep 17 00:00:00 2001 From: Aaron Steinfeld Date: Thu, 28 Jan 2021 14:39:11 -0500 Subject: [PATCH] refactor: add otel deployment env constant --- .../OTelDeploymentSemanticConventions.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 span-normalizer/span-normalizer-constants/src/main/java/org/hypertrace/core/semantic/convention/constants/deployment/OTelDeploymentSemanticConventions.java diff --git a/span-normalizer/span-normalizer-constants/src/main/java/org/hypertrace/core/semantic/convention/constants/deployment/OTelDeploymentSemanticConventions.java b/span-normalizer/span-normalizer-constants/src/main/java/org/hypertrace/core/semantic/convention/constants/deployment/OTelDeploymentSemanticConventions.java new file mode 100644 index 000000000..a0fea4d25 --- /dev/null +++ b/span-normalizer/span-normalizer-constants/src/main/java/org/hypertrace/core/semantic/convention/constants/deployment/OTelDeploymentSemanticConventions.java @@ -0,0 +1,16 @@ +package org.hypertrace.core.semantic.convention.constants.deployment; + +/** OTEL specific attributes for deployment */ +public enum OTelDeploymentSemanticConventions { + DEPLOYMENT_ENVIRONMENT("deployment.environment"); + + private final String value; + + OTelDeploymentSemanticConventions(String value) { + this.value = value; + } + + public String getValue() { + return value; + } +}