cloudevents_attributes.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 cloudevents
  16. {
  17. /**
  18. The <a href="https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id">event_id</a>
  19. uniquely identifies the event.
  20. */
  21. static constexpr const char *kCloudeventsEventId = "cloudevents.event_id";
  22. /**
  23. The <a
  24. href="https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1">source</a>
  25. identifies the context in which an event happened.
  26. */
  27. static constexpr const char *kCloudeventsEventSource = "cloudevents.event_source";
  28. /**
  29. The <a
  30. href="https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion">version of
  31. the CloudEvents specification</a> which the event uses.
  32. */
  33. static constexpr const char *kCloudeventsEventSpecVersion = "cloudevents.event_spec_version";
  34. /**
  35. The <a
  36. href="https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#subject">subject</a> of
  37. the event in the context of the event producer (identified by source).
  38. */
  39. static constexpr const char *kCloudeventsEventSubject = "cloudevents.event_subject";
  40. /**
  41. The <a
  42. href="https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type">event_type</a>
  43. contains a value describing the type of event related to the originating occurrence.
  44. */
  45. static constexpr const char *kCloudeventsEventType = "cloudevents.event_type";
  46. } // namespace cloudevents
  47. } // namespace semconv
  48. OPENTELEMETRY_END_NAMESPACE