deployment_attributes.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 deployment
  16. {
  17. /**
  18. 'Deprecated, use @code deployment.environment.name @endcode instead.'
  19. @deprecated
  20. {"note": "Replaced by @code deployment.environment.name @endcode.", "reason": "renamed",
  21. "renamed_to": "deployment.environment.name"}
  22. */
  23. OPENTELEMETRY_DEPRECATED static constexpr const char *kDeploymentEnvironment =
  24. "deployment.environment";
  25. /**
  26. Name of the <a href="https://wikipedia.org/wiki/Deployment_environment">deployment environment</a>
  27. (aka deployment tier). <p>
  28. @code deployment.environment.name @endcode does not affect the uniqueness constraints defined
  29. through the @code service.namespace @endcode, @code service.name @endcode and @code
  30. service.instance.id @endcode resource attributes. This implies that resources carrying the
  31. following attribute combinations MUST be considered to be identifying the same service: <ul>
  32. <li>@code service.name=frontend @endcode, @code deployment.environment.name=production
  33. @endcode</li> <li>@code service.name=frontend @endcode, @code deployment.environment.name=staging
  34. @endcode.</li>
  35. </ul>
  36. */
  37. static constexpr const char *kDeploymentEnvironmentName = "deployment.environment.name";
  38. /**
  39. The id of the deployment.
  40. */
  41. static constexpr const char *kDeploymentId = "deployment.id";
  42. /**
  43. The name of the deployment.
  44. */
  45. static constexpr const char *kDeploymentName = "deployment.name";
  46. /**
  47. The status of the deployment.
  48. */
  49. static constexpr const char *kDeploymentStatus = "deployment.status";
  50. namespace DeploymentStatusValues
  51. {
  52. /**
  53. failed
  54. */
  55. static constexpr const char *kFailed = "failed";
  56. /**
  57. succeeded
  58. */
  59. static constexpr const char *kSucceeded = "succeeded";
  60. } // namespace DeploymentStatusValues
  61. } // namespace deployment
  62. } // namespace semconv
  63. OPENTELEMETRY_END_NAMESPACE