gcp_attributes.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. /*
  2. * Copyright The OpenTelemetry Authors
  3. * SPDX-License-Identifier: Apache-2.0
  4. */
  5. /*
  6. * DO NOT EDIT, this is an Auto-generated file from:
  7. * buildscripts/semantic-convention/templates/registry/semantic_attributes-h.j2
  8. */
  9. #pragma once
  10. #include "opentelemetry/common/macros.h"
  11. #include "opentelemetry/version.h"
  12. OPENTELEMETRY_BEGIN_NAMESPACE
  13. namespace semconv
  14. {
  15. namespace gcp
  16. {
  17. /**
  18. The container within GCP where the AppHub application is defined.
  19. */
  20. static constexpr const char *kGcpApphubApplicationContainer = "gcp.apphub.application.container";
  21. /**
  22. The name of the application as configured in AppHub.
  23. */
  24. static constexpr const char *kGcpApphubApplicationId = "gcp.apphub.application.id";
  25. /**
  26. The GCP zone or region where the application is defined.
  27. */
  28. static constexpr const char *kGcpApphubApplicationLocation = "gcp.apphub.application.location";
  29. /**
  30. Criticality of a service indicates its importance to the business.
  31. <p>
  32. <a href="https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type">See AppHub type
  33. enum</a>
  34. */
  35. static constexpr const char *kGcpApphubServiceCriticalityType =
  36. "gcp.apphub.service.criticality_type";
  37. /**
  38. Environment of a service is the stage of a software lifecycle.
  39. <p>
  40. <a href="https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1">See AppHub
  41. environment type</a>
  42. */
  43. static constexpr const char *kGcpApphubServiceEnvironmentType =
  44. "gcp.apphub.service.environment_type";
  45. /**
  46. The name of the service as configured in AppHub.
  47. */
  48. static constexpr const char *kGcpApphubServiceId = "gcp.apphub.service.id";
  49. /**
  50. Criticality of a workload indicates its importance to the business.
  51. <p>
  52. <a href="https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type">See AppHub type
  53. enum</a>
  54. */
  55. static constexpr const char *kGcpApphubWorkloadCriticalityType =
  56. "gcp.apphub.workload.criticality_type";
  57. /**
  58. Environment of a workload is the stage of a software lifecycle.
  59. <p>
  60. <a href="https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1">See AppHub
  61. environment type</a>
  62. */
  63. static constexpr const char *kGcpApphubWorkloadEnvironmentType =
  64. "gcp.apphub.workload.environment_type";
  65. /**
  66. The name of the workload as configured in AppHub.
  67. */
  68. static constexpr const char *kGcpApphubWorkloadId = "gcp.apphub.workload.id";
  69. /**
  70. Identifies the Google Cloud service for which the official client library is intended.
  71. <p>
  72. Intended to be a stable identifier for Google Cloud client libraries that is uniform across
  73. implementation languages. The value should be derived from the canonical service domain for the
  74. service; for example, 'foo.googleapis.com' should result in a value of 'foo'.
  75. */
  76. static constexpr const char *kGcpClientService = "gcp.client.service";
  77. /**
  78. The name of the Cloud Run <a
  79. href="https://cloud.google.com/run/docs/managing/job-executions">execution</a> being run for the
  80. Job, as set by the <a
  81. href="https://cloud.google.com/run/docs/container-contract#jobs-env-vars">@code
  82. CLOUD_RUN_EXECUTION @endcode</a> environment variable.
  83. */
  84. static constexpr const char *kGcpCloudRunJobExecution = "gcp.cloud_run.job.execution";
  85. /**
  86. The index for a task within an execution as provided by the <a
  87. href="https://cloud.google.com/run/docs/container-contract#jobs-env-vars">@code
  88. CLOUD_RUN_TASK_INDEX @endcode</a> environment variable.
  89. */
  90. static constexpr const char *kGcpCloudRunJobTaskIndex = "gcp.cloud_run.job.task_index";
  91. /**
  92. The hostname of a GCE instance. This is the full value of the default or <a
  93. href="https://cloud.google.com/compute/docs/instances/custom-hostname-vm">custom hostname</a>.
  94. */
  95. static constexpr const char *kGcpGceInstanceHostname = "gcp.gce.instance.hostname";
  96. /**
  97. The instance name of a GCE instance. This is the value provided by @code host.name @endcode, the
  98. visible name of the instance in the Cloud Console UI, and the prefix for the default hostname of
  99. the instance as defined by the <a
  100. href="https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names">default
  101. internal DNS name</a>.
  102. */
  103. static constexpr const char *kGcpGceInstanceName = "gcp.gce.instance.name";
  104. namespace GcpApphubServiceCriticalityTypeValues
  105. {
  106. /**
  107. Mission critical service.
  108. */
  109. static constexpr const char *kMissionCritical = "MISSION_CRITICAL";
  110. /**
  111. High impact.
  112. */
  113. static constexpr const char *kHigh = "HIGH";
  114. /**
  115. Medium impact.
  116. */
  117. static constexpr const char *kMedium = "MEDIUM";
  118. /**
  119. Low impact.
  120. */
  121. static constexpr const char *kLow = "LOW";
  122. } // namespace GcpApphubServiceCriticalityTypeValues
  123. namespace GcpApphubServiceEnvironmentTypeValues
  124. {
  125. /**
  126. Production environment.
  127. */
  128. static constexpr const char *kProduction = "PRODUCTION";
  129. /**
  130. Staging environment.
  131. */
  132. static constexpr const char *kStaging = "STAGING";
  133. /**
  134. Test environment.
  135. */
  136. static constexpr const char *kTest = "TEST";
  137. /**
  138. Development environment.
  139. */
  140. static constexpr const char *kDevelopment = "DEVELOPMENT";
  141. } // namespace GcpApphubServiceEnvironmentTypeValues
  142. namespace GcpApphubWorkloadCriticalityTypeValues
  143. {
  144. /**
  145. Mission critical service.
  146. */
  147. static constexpr const char *kMissionCritical = "MISSION_CRITICAL";
  148. /**
  149. High impact.
  150. */
  151. static constexpr const char *kHigh = "HIGH";
  152. /**
  153. Medium impact.
  154. */
  155. static constexpr const char *kMedium = "MEDIUM";
  156. /**
  157. Low impact.
  158. */
  159. static constexpr const char *kLow = "LOW";
  160. } // namespace GcpApphubWorkloadCriticalityTypeValues
  161. namespace GcpApphubWorkloadEnvironmentTypeValues
  162. {
  163. /**
  164. Production environment.
  165. */
  166. static constexpr const char *kProduction = "PRODUCTION";
  167. /**
  168. Staging environment.
  169. */
  170. static constexpr const char *kStaging = "STAGING";
  171. /**
  172. Test environment.
  173. */
  174. static constexpr const char *kTest = "TEST";
  175. /**
  176. Development environment.
  177. */
  178. static constexpr const char *kDevelopment = "DEVELOPMENT";
  179. } // namespace GcpApphubWorkloadEnvironmentTypeValues
  180. } // namespace gcp
  181. } // namespace semconv
  182. OPENTELEMETRY_END_NAMESPACE