user_attributes.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 user
  16. {
  17. /**
  18. User email address.
  19. */
  20. static constexpr const char *kUserEmail = "user.email";
  21. /**
  22. User's full name
  23. */
  24. static constexpr const char *kUserFullName = "user.full_name";
  25. /**
  26. Unique user hash to correlate information for a user in anonymized form.
  27. <p>
  28. Useful if @code user.id @endcode or @code user.name @endcode contain confidential information and
  29. cannot be used.
  30. */
  31. static constexpr const char *kUserHash = "user.hash";
  32. /**
  33. Unique identifier of the user.
  34. */
  35. static constexpr const char *kUserId = "user.id";
  36. /**
  37. Short name or login/username of the user.
  38. */
  39. static constexpr const char *kUserName = "user.name";
  40. /**
  41. Array of user roles at the time of the event.
  42. */
  43. static constexpr const char *kUserRoles = "user.roles";
  44. } // namespace user
  45. } // namespace semconv
  46. OPENTELEMETRY_END_NAMESPACE