-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathDeploymentIncubatingAttributes.java
More file actions
94 lines (76 loc) · 3.17 KB
/
DeploymentIncubatingAttributes.java
File metadata and controls
94 lines (76 loc) · 3.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.semconv.incubating;
import static io.opentelemetry.api.common.AttributeKey.stringKey;
import io.opentelemetry.api.common.AttributeKey;
// DO NOT EDIT, this is an Auto-generated file from
// buildscripts/templates/registry/incubating_java/IncubatingSemanticAttributes.java.j2
@SuppressWarnings("unused")
public final class DeploymentIncubatingAttributes {
/**
* Deprecated, use {@code deployment.environment.name} instead.
*
* @deprecated Replaced by {@code deployment.environment.name}.
*/
@Deprecated
public static final AttributeKey<String> DEPLOYMENT_ENVIRONMENT =
stringKey("deployment.environment");
/**
* Name of the <a href="https://wikipedia.org/wiki/Deployment_environment">deployment
* environment</a> (aka deployment tier).
*
* <p>Notes:
*
* <p>{@code deployment.environment.name} does not affect the uniqueness constraints defined
* through the {@code service.namespace}, {@code service.name} and {@code service.instance.id}
* resource attributes. This implies that resources carrying the following attribute combinations
* MUST be considered to be identifying the same service:
*
* <ul>
* <li>{@code service.name=frontend}, {@code deployment.environment.name=production}
* <li>{@code service.name=frontend}, {@code deployment.environment.name=staging}.
* </ul>
*
* @deprecated deprecated in favor of stable {@link
* io.opentelemetry.semconv.DeploymentAttributes#DEPLOYMENT_ENVIRONMENT_NAME} attribute.
*/
@Deprecated
public static final AttributeKey<String> DEPLOYMENT_ENVIRONMENT_NAME =
stringKey("deployment.environment.name");
/** The id of the deployment. */
public static final AttributeKey<String> DEPLOYMENT_ID = stringKey("deployment.id");
/** The name of the deployment. */
public static final AttributeKey<String> DEPLOYMENT_NAME = stringKey("deployment.name");
/** The status of the deployment. */
public static final AttributeKey<String> DEPLOYMENT_STATUS = stringKey("deployment.status");
// Enum definitions
/**
* Values for {@link #DEPLOYMENT_ENVIRONMENT_NAME}.
*
* @deprecated deprecated in favor of stable {@link
* io.opentelemetry.semconv.DeploymentAttributes.DeploymentEnvironmentNameValues}.
*/
@Deprecated
public static final class DeploymentEnvironmentNameIncubatingValues {
/** Production environment */
public static final String PRODUCTION = "production";
/** Staging environment */
public static final String STAGING = "staging";
/** Testing environment */
public static final String TEST = "test";
/** Development environment */
public static final String DEVELOPMENT = "development";
private DeploymentEnvironmentNameIncubatingValues() {}
}
/** Values for {@link #DEPLOYMENT_STATUS}. */
public static final class DeploymentStatusIncubatingValues {
/** failed */
public static final String FAILED = "failed";
/** succeeded */
public static final String SUCCEEDED = "succeeded";
private DeploymentStatusIncubatingValues() {}
}
private DeploymentIncubatingAttributes() {}
}