url_attributes.h 4.1 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 url
  16. {
  17. /**
  18. The <a href="https://www.rfc-editor.org/rfc/rfc3986#section-3.5">URI fragment</a> component
  19. */
  20. static constexpr const char *kUrlFragment = "url.fragment";
  21. /**
  22. Absolute URL describing a network resource according to <a
  23. href="https://www.rfc-editor.org/rfc/rfc3986">RFC3986</a> <p> For network calls, URL usually has
  24. @code scheme://host[:port][path][?query][#fragment] @endcode format, where the fragment is not
  25. transmitted over HTTP, but if it is known, it SHOULD be included nevertheless. <p>
  26. @code url.full @endcode MUST NOT contain credentials passed via URL in form of @code
  27. https://username:[email protected]/ @endcode. In such case username and password SHOULD be
  28. redacted and attribute's value SHOULD be @code https://REDACTED:[email protected]/
  29. @endcode. <p>
  30. @code url.full @endcode SHOULD capture the absolute URL when it is available (or can be
  31. reconstructed). <p> Sensitive content provided in @code url.full @endcode SHOULD be scrubbed when
  32. instrumentations can identify it. <p>
  33. Query string values for the following keys SHOULD be redacted by default and replaced by the
  34. value @code REDACTED @endcode:
  35. <ul>
  36. <li><a
  37. href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth">@code
  38. AWSAccessKeyId @endcode</a></li> <li><a
  39. href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth">@code
  40. Signature @endcode</a></li> <li><a
  41. href="https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token">@code sig
  42. @endcode</a></li> <li><a
  43. href="https://cloud.google.com/storage/docs/access-control/signed-urls">@code X-Goog-Signature
  44. @endcode</a></li>
  45. </ul>
  46. <p>
  47. This list is subject to change over time.
  48. <p>
  49. When a query string value is redacted, the query string key SHOULD still be preserved, e.g.
  50. @code https://www.example.com/path?color=blue&sig=REDACTED @endcode.
  51. */
  52. static constexpr const char *kUrlFull = "url.full";
  53. /**
  54. The <a href="https://www.rfc-editor.org/rfc/rfc3986#section-3.3">URI path</a> component
  55. <p>
  56. Sensitive content provided in @code url.path @endcode SHOULD be scrubbed when instrumentations can
  57. identify it.
  58. */
  59. static constexpr const char *kUrlPath = "url.path";
  60. /**
  61. The <a href="https://www.rfc-editor.org/rfc/rfc3986#section-3.4">URI query</a> component
  62. <p>
  63. Sensitive content provided in @code url.query @endcode SHOULD be scrubbed when instrumentations
  64. can identify it. <p>
  65. Query string values for the following keys SHOULD be redacted by default and replaced by the value
  66. @code REDACTED @endcode: <ul> <li><a
  67. href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth">@code
  68. AWSAccessKeyId @endcode</a></li> <li><a
  69. href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/RESTAuthentication.html#RESTAuthenticationQueryStringAuth">@code
  70. Signature @endcode</a></li> <li><a
  71. href="https://learn.microsoft.com/azure/storage/common/storage-sas-overview#sas-token">@code sig
  72. @endcode</a></li> <li><a
  73. href="https://cloud.google.com/storage/docs/access-control/signed-urls">@code X-Goog-Signature
  74. @endcode</a></li>
  75. </ul>
  76. <p>
  77. This list is subject to change over time.
  78. <p>
  79. When a query string value is redacted, the query string key SHOULD still be preserved, e.g.
  80. @code q=OpenTelemetry&sig=REDACTED @endcode.
  81. */
  82. static constexpr const char *kUrlQuery = "url.query";
  83. /**
  84. The <a href="https://www.rfc-editor.org/rfc/rfc3986#section-3.1">URI scheme</a> component
  85. identifying the used protocol.
  86. */
  87. static constexpr const char *kUrlScheme = "url.scheme";
  88. } // namespace url
  89. } // namespace semconv
  90. OPENTELEMETRY_END_NAMESPACE