File: gcp_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 (221 lines) | stat: -rw-r--r-- 6,041 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
/*
 * 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 gcp
{

/**
  The container within GCP where the AppHub application is defined.
 */
static constexpr const char *kGcpApphubApplicationContainer = "gcp.apphub.application.container";

/**
  The name of the application as configured in AppHub.
 */
static constexpr const char *kGcpApphubApplicationId = "gcp.apphub.application.id";

/**
  The GCP zone or region where the application is defined.
 */
static constexpr const char *kGcpApphubApplicationLocation = "gcp.apphub.application.location";

/**
  Criticality of a service indicates its importance to the business.
  <p>
  <a href="https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type">See AppHub type
  enum</a>
 */
static constexpr const char *kGcpApphubServiceCriticalityType =
    "gcp.apphub.service.criticality_type";

/**
  Environment of a service is the stage of a software lifecycle.
  <p>
  <a href="https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1">See AppHub
  environment type</a>
 */
static constexpr const char *kGcpApphubServiceEnvironmentType =
    "gcp.apphub.service.environment_type";

/**
  The name of the service as configured in AppHub.
 */
static constexpr const char *kGcpApphubServiceId = "gcp.apphub.service.id";

/**
  Criticality of a workload indicates its importance to the business.
  <p>
  <a href="https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type">See AppHub type
  enum</a>
 */
static constexpr const char *kGcpApphubWorkloadCriticalityType =
    "gcp.apphub.workload.criticality_type";

/**
  Environment of a workload is the stage of a software lifecycle.
  <p>
  <a href="https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1">See AppHub
  environment type</a>
 */
static constexpr const char *kGcpApphubWorkloadEnvironmentType =
    "gcp.apphub.workload.environment_type";

/**
  The name of the workload as configured in AppHub.
 */
static constexpr const char *kGcpApphubWorkloadId = "gcp.apphub.workload.id";

/**
  Identifies the Google Cloud service for which the official client library is intended.
  <p>
  Intended to be a stable identifier for Google Cloud client libraries that is uniform across
  implementation languages. The value should be derived from the canonical service domain for the
  service; for example, 'foo.googleapis.com' should result in a value of 'foo'.
 */
static constexpr const char *kGcpClientService = "gcp.client.service";

/**
  The name of the Cloud Run <a
  href="https://cloud.google.com/run/docs/managing/job-executions">execution</a> being run for the
  Job, as set by the <a
  href="https://cloud.google.com/run/docs/container-contract#jobs-env-vars">@code
  CLOUD_RUN_EXECUTION @endcode</a> environment variable.
 */
static constexpr const char *kGcpCloudRunJobExecution = "gcp.cloud_run.job.execution";

/**
  The index for a task within an execution as provided by the <a
  href="https://cloud.google.com/run/docs/container-contract#jobs-env-vars">@code
  CLOUD_RUN_TASK_INDEX @endcode</a> environment variable.
 */
static constexpr const char *kGcpCloudRunJobTaskIndex = "gcp.cloud_run.job.task_index";

/**
  The hostname of a GCE instance. This is the full value of the default or <a
  href="https://cloud.google.com/compute/docs/instances/custom-hostname-vm">custom hostname</a>.
 */
static constexpr const char *kGcpGceInstanceHostname = "gcp.gce.instance.hostname";

/**
  The instance name of a GCE instance. This is the value provided by @code host.name @endcode, the
  visible name of the instance in the Cloud Console UI, and the prefix for the default hostname of
  the instance as defined by the <a
  href="https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names">default
  internal DNS name</a>.
 */
static constexpr const char *kGcpGceInstanceName = "gcp.gce.instance.name";

namespace GcpApphubServiceCriticalityTypeValues
{
/**
  Mission critical service.
 */
static constexpr const char *kMissionCritical = "MISSION_CRITICAL";

/**
  High impact.
 */
static constexpr const char *kHigh = "HIGH";

/**
  Medium impact.
 */
static constexpr const char *kMedium = "MEDIUM";

/**
  Low impact.
 */
static constexpr const char *kLow = "LOW";

}  // namespace GcpApphubServiceCriticalityTypeValues

namespace GcpApphubServiceEnvironmentTypeValues
{
/**
  Production environment.
 */
static constexpr const char *kProduction = "PRODUCTION";

/**
  Staging environment.
 */
static constexpr const char *kStaging = "STAGING";

/**
  Test environment.
 */
static constexpr const char *kTest = "TEST";

/**
  Development environment.
 */
static constexpr const char *kDevelopment = "DEVELOPMENT";

}  // namespace GcpApphubServiceEnvironmentTypeValues

namespace GcpApphubWorkloadCriticalityTypeValues
{
/**
  Mission critical service.
 */
static constexpr const char *kMissionCritical = "MISSION_CRITICAL";

/**
  High impact.
 */
static constexpr const char *kHigh = "HIGH";

/**
  Medium impact.
 */
static constexpr const char *kMedium = "MEDIUM";

/**
  Low impact.
 */
static constexpr const char *kLow = "LOW";

}  // namespace GcpApphubWorkloadCriticalityTypeValues

namespace GcpApphubWorkloadEnvironmentTypeValues
{
/**
  Production environment.
 */
static constexpr const char *kProduction = "PRODUCTION";

/**
  Staging environment.
 */
static constexpr const char *kStaging = "STAGING";

/**
  Test environment.
 */
static constexpr const char *kTest = "TEST";

/**
  Development environment.
 */
static constexpr const char *kDevelopment = "DEVELOPMENT";

}  // namespace GcpApphubWorkloadEnvironmentTypeValues

}  // namespace gcp
}  // namespace semconv
OPENTELEMETRY_END_NAMESPACE