File: deployment_attributes.h

package info (click to toggle)
opentelemetry-cpp 1.23.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,368 kB
  • sloc: cpp: 96,239; sh: 1,766; makefile: 38; python: 31
file content (77 lines) | stat: -rw-r--r-- 2,159 bytes parent folder | download
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
/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

/*
 * DO NOT EDIT, this is an Auto-generated file from:
 * buildscripts/semantic-convention/templates/registry/semantic_attributes-h.j2
 */

#pragma once

#include "opentelemetry/common/macros.h"
#include "opentelemetry/version.h"

OPENTELEMETRY_BEGIN_NAMESPACE
namespace semconv
{
namespace deployment
{

/**
  Deprecated, use @code deployment.environment.name @endcode instead.

  @deprecated
  {"note": "Replaced by @code deployment.environment.name @endcode.", "reason": "renamed",
  "renamed_to": "deployment.environment.name"}
 */
OPENTELEMETRY_DEPRECATED static constexpr const char *kDeploymentEnvironment =
    "deployment.environment";

/**
  Name of the <a href="https://wikipedia.org/wiki/Deployment_environment">deployment environment</a>
  (aka deployment tier). <p>
  @code deployment.environment.name @endcode does not affect the uniqueness constraints defined
  through the @code service.namespace @endcode, @code service.name @endcode and @code
  service.instance.id @endcode 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 @endcode, @code deployment.environment.name=production
  @endcode</li> <li>@code service.name=frontend @endcode, @code deployment.environment.name=staging
  @endcode.</li>
  </ul>
 */
static constexpr const char *kDeploymentEnvironmentName = "deployment.environment.name";

/**
  The id of the deployment.
 */
static constexpr const char *kDeploymentId = "deployment.id";

/**
  The name of the deployment.
 */
static constexpr const char *kDeploymentName = "deployment.name";

/**
  The status of the deployment.
 */
static constexpr const char *kDeploymentStatus = "deployment.status";

namespace DeploymentStatusValues
{
/**
  failed
 */
static constexpr const char *kFailed = "failed";

/**
  succeeded
 */
static constexpr const char *kSucceeded = "succeeded";

}  // namespace DeploymentStatusValues

}  // namespace deployment
}  // namespace semconv
OPENTELEMETRY_END_NAMESPACE