cloudfoundry_attributes.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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 cloudfoundry
  16. {
  17. /**
  18. The guid of the application.
  19. <p>
  20. Application instrumentation should use the value from environment
  21. variable @code VCAP_APPLICATION.application_id @endcode. This is the same value as
  22. reported by @code cf app <app-name> --guid @endcode.
  23. */
  24. static constexpr const char *kCloudfoundryAppId = "cloudfoundry.app.id";
  25. /**
  26. The index of the application instance. 0 when just one instance is active.
  27. <p>
  28. CloudFoundry defines the @code instance_id @endcode in the <a
  29. href="https://github.com/cloudfoundry/loggregator-api#v2-envelope">Loggregator v2 envelope</a>. It
  30. is used for logs and metrics emitted by CloudFoundry. It is supposed to contain the application
  31. instance index for applications deployed on the runtime. <p> Application instrumentation should
  32. use the value from environment variable @code CF_INSTANCE_INDEX @endcode.
  33. */
  34. static constexpr const char *kCloudfoundryAppInstanceId = "cloudfoundry.app.instance.id";
  35. /**
  36. The name of the application.
  37. <p>
  38. Application instrumentation should use the value from environment
  39. variable @code VCAP_APPLICATION.application_name @endcode. This is the same value
  40. as reported by @code cf apps @endcode.
  41. */
  42. static constexpr const char *kCloudfoundryAppName = "cloudfoundry.app.name";
  43. /**
  44. The guid of the CloudFoundry org the application is running in.
  45. <p>
  46. Application instrumentation should use the value from environment
  47. variable @code VCAP_APPLICATION.org_id @endcode. This is the same value as
  48. reported by @code cf org <org-name> --guid @endcode.
  49. */
  50. static constexpr const char *kCloudfoundryOrgId = "cloudfoundry.org.id";
  51. /**
  52. The name of the CloudFoundry organization the app is running in.
  53. <p>
  54. Application instrumentation should use the value from environment
  55. variable @code VCAP_APPLICATION.org_name @endcode. This is the same value as
  56. reported by @code cf orgs @endcode.
  57. */
  58. static constexpr const char *kCloudfoundryOrgName = "cloudfoundry.org.name";
  59. /**
  60. The UID identifying the process.
  61. <p>
  62. Application instrumentation should use the value from environment
  63. variable @code VCAP_APPLICATION.process_id @endcode. It is supposed to be equal to
  64. @code VCAP_APPLICATION.app_id @endcode for applications deployed to the runtime.
  65. For system components, this could be the actual PID.
  66. */
  67. static constexpr const char *kCloudfoundryProcessId = "cloudfoundry.process.id";
  68. /**
  69. The type of process.
  70. <p>
  71. CloudFoundry applications can consist of multiple jobs. Usually the
  72. main process will be of type @code web @endcode. There can be additional background
  73. tasks or side-cars with different process types.
  74. */
  75. static constexpr const char *kCloudfoundryProcessType = "cloudfoundry.process.type";
  76. /**
  77. The guid of the CloudFoundry space the application is running in.
  78. <p>
  79. Application instrumentation should use the value from environment
  80. variable @code VCAP_APPLICATION.space_id @endcode. This is the same value as
  81. reported by @code cf space <space-name> --guid @endcode.
  82. */
  83. static constexpr const char *kCloudfoundrySpaceId = "cloudfoundry.space.id";
  84. /**
  85. The name of the CloudFoundry space the application is running in.
  86. <p>
  87. Application instrumentation should use the value from environment
  88. variable @code VCAP_APPLICATION.space_name @endcode. This is the same value as
  89. reported by @code cf spaces @endcode.
  90. */
  91. static constexpr const char *kCloudfoundrySpaceName = "cloudfoundry.space.name";
  92. /**
  93. A guid or another name describing the event source.
  94. <p>
  95. CloudFoundry defines the @code source_id @endcode in the <a
  96. href="https://github.com/cloudfoundry/loggregator-api#v2-envelope">Loggregator v2 envelope</a>. It
  97. is used for logs and metrics emitted by CloudFoundry. It is supposed to contain the component
  98. name, e.g. "gorouter", for CloudFoundry components. <p> When system components are instrumented,
  99. values from the <a href="https://bosh.io/docs/jobs/#properties-spec">Bosh spec</a> should be used.
  100. The @code system.id @endcode should be set to
  101. @code spec.deployment/spec.name @endcode.
  102. */
  103. static constexpr const char *kCloudfoundrySystemId = "cloudfoundry.system.id";
  104. /**
  105. A guid describing the concrete instance of the event source.
  106. <p>
  107. CloudFoundry defines the @code instance_id @endcode in the <a
  108. href="https://github.com/cloudfoundry/loggregator-api#v2-envelope">Loggregator v2 envelope</a>. It
  109. is used for logs and metrics emitted by CloudFoundry. It is supposed to contain the vm id for
  110. CloudFoundry components. <p> When system components are instrumented, values from the <a
  111. href="https://bosh.io/docs/jobs/#properties-spec">Bosh spec</a> should be used. The @code
  112. system.instance.id @endcode should be set to @code spec.id @endcode.
  113. */
  114. static constexpr const char *kCloudfoundrySystemInstanceId = "cloudfoundry.system.instance.id";
  115. } // namespace cloudfoundry
  116. } // namespace semconv
  117. OPENTELEMETRY_END_NAMESPACE