exception_attributes.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 exception
  16. {
  17. /**
  18. Indicates that the exception is escaping the scope of the span.
  19. @deprecated
  20. {"note": "It's no longer recommended to record exceptions that are handled and do not escape the
  21. scope of a span.\n", "reason": "obsoleted"}
  22. */
  23. OPENTELEMETRY_DEPRECATED static constexpr const char *kExceptionEscaped = "exception.escaped";
  24. /**
  25. The exception message.
  26. */
  27. static constexpr const char *kExceptionMessage = "exception.message";
  28. /**
  29. A stacktrace as a string in the natural representation for the language runtime. The
  30. representation is to be determined and documented by each language SIG.
  31. */
  32. static constexpr const char *kExceptionStacktrace = "exception.stacktrace";
  33. /**
  34. The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the
  35. exception should be preferred over the static type in languages that support it.
  36. */
  37. static constexpr const char *kExceptionType = "exception.type";
  38. } // namespace exception
  39. } // namespace semconv
  40. OPENTELEMETRY_END_NAMESPACE