geo_attributes.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 geo
  16. {
  17. /**
  18. Two-letter code representing continent’s name.
  19. */
  20. static constexpr const char *kGeoContinentCode = "geo.continent.code";
  21. /**
  22. Two-letter ISO Country Code (<a href="https://wikipedia.org/wiki/ISO_3166-1#Codes">ISO 3166-1
  23. alpha2</a>).
  24. */
  25. static constexpr const char *kGeoCountryIsoCode = "geo.country.iso_code";
  26. /**
  27. Locality name. Represents the name of a city, town, village, or similar populated place.
  28. */
  29. static constexpr const char *kGeoLocalityName = "geo.locality.name";
  30. /**
  31. Latitude of the geo location in <a
  32. href="https://wikipedia.org/wiki/World_Geodetic_System#WGS84">WGS84</a>.
  33. */
  34. static constexpr const char *kGeoLocationLat = "geo.location.lat";
  35. /**
  36. Longitude of the geo location in <a
  37. href="https://wikipedia.org/wiki/World_Geodetic_System#WGS84">WGS84</a>.
  38. */
  39. static constexpr const char *kGeoLocationLon = "geo.location.lon";
  40. /**
  41. Postal code associated with the location. Values appropriate for this field may also be known as a
  42. postcode or ZIP code and will vary widely from country to country.
  43. */
  44. static constexpr const char *kGeoPostalCode = "geo.postal_code";
  45. /**
  46. Region ISO code (<a href="https://wikipedia.org/wiki/ISO_3166-2">ISO 3166-2</a>).
  47. */
  48. static constexpr const char *kGeoRegionIsoCode = "geo.region.iso_code";
  49. namespace GeoContinentCodeValues
  50. {
  51. /**
  52. Africa
  53. */
  54. static constexpr const char *kAf = "AF";
  55. /**
  56. Antarctica
  57. */
  58. static constexpr const char *kAn = "AN";
  59. /**
  60. Asia
  61. */
  62. static constexpr const char *kAs = "AS";
  63. /**
  64. Europe
  65. */
  66. static constexpr const char *kEu = "EU";
  67. /**
  68. North America
  69. */
  70. static constexpr const char *kNa = "NA";
  71. /**
  72. Oceania
  73. */
  74. static constexpr const char *kOc = "OC";
  75. /**
  76. South America
  77. */
  78. static constexpr const char *kSa = "SA";
  79. } // namespace GeoContinentCodeValues
  80. } // namespace geo
  81. } // namespace semconv
  82. OPENTELEMETRY_END_NAMESPACE