service_attributes.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 service
  16. {
  17. /**
  18. Logical name of the service.
  19. <p>
  20. MUST be the same for all instances of horizontally scaled services. If the value was not
  21. specified, SDKs MUST fallback to @code unknown_service: @endcode concatenated with <a
  22. href="process.md">@code process.executable.name @endcode</a>, e.g. @code unknown_service:bash
  23. @endcode. If @code process.executable.name @endcode is not available, the value MUST be set to
  24. @code unknown_service @endcode.
  25. */
  26. static constexpr const char *kServiceName = "service.name";
  27. /**
  28. The version string of the service API or implementation. The format is not defined by these
  29. conventions.
  30. */
  31. static constexpr const char *kServiceVersion = "service.version";
  32. } // namespace service
  33. } // namespace semconv
  34. OPENTELEMETRY_END_NAMESPACE