log_attributes.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 log
  16. {
  17. /**
  18. The basename of the file.
  19. */
  20. static constexpr const char *kLogFileName = "log.file.name";
  21. /**
  22. The basename of the file, with symlinks resolved.
  23. */
  24. static constexpr const char *kLogFileNameResolved = "log.file.name_resolved";
  25. /**
  26. The full path to the file.
  27. */
  28. static constexpr const char *kLogFilePath = "log.file.path";
  29. /**
  30. The full path to the file, with symlinks resolved.
  31. */
  32. static constexpr const char *kLogFilePathResolved = "log.file.path_resolved";
  33. /**
  34. The stream associated with the log. See below for a list of well-known values.
  35. */
  36. static constexpr const char *kLogIostream = "log.iostream";
  37. /**
  38. The complete original Log Record.
  39. <p>
  40. This value MAY be added when processing a Log Record which was originally transmitted as a string
  41. or equivalent data type AND the Body field of the Log Record does not contain the same value.
  42. (e.g. a syslog or a log record read from a file.)
  43. */
  44. static constexpr const char *kLogRecordOriginal = "log.record.original";
  45. /**
  46. A unique identifier for the Log Record.
  47. <p>
  48. If an id is provided, other log records with the same id will be considered duplicates and can be
  49. removed safely. This means, that two distinguishable log records MUST have different values. The
  50. id MAY be an <a href="https://github.com/ulid/spec">Universally Unique Lexicographically Sortable
  51. Identifier (ULID)</a>, but other identifiers (e.g. UUID) may be used as needed.
  52. */
  53. static constexpr const char *kLogRecordUid = "log.record.uid";
  54. namespace LogIostreamValues
  55. {
  56. /**
  57. Logs from stdout stream
  58. */
  59. static constexpr const char *kStdout = "stdout";
  60. /**
  61. Events from stderr stream
  62. */
  63. static constexpr const char *kStderr = "stderr";
  64. } // namespace LogIostreamValues
  65. } // namespace log
  66. } // namespace semconv
  67. OPENTELEMETRY_END_NAMESPACE