/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ /* * DO NOT EDIT, this is an Auto-generated file from: * buildscripts/semantic-convention/templates/registry/semantic_attributes-h.j2 */ #pragma once #include "opentelemetry/common/macros.h" #include "opentelemetry/version.h" OPENTELEMETRY_BEGIN_NAMESPACE namespace semconv { namespace url { /** The URI fragment component */ static constexpr const char *kUrlFragment = "url.fragment"; /** Absolute URL describing a network resource according to RFC3986

For network calls, URL usually has @code scheme://host[:port][path][?query][#fragment] @endcode format, where the fragment is not transmitted over HTTP, but if it is known, it SHOULD be included nevertheless.

@code url.full @endcode MUST NOT contain credentials passed via URL in form of @code https://username:password@www.example.com/ @endcode. In such case username and password SHOULD be redacted and attribute's value SHOULD be @code https://REDACTED:REDACTED@www.example.com/ @endcode.

@code url.full @endcode SHOULD capture the absolute URL when it is available (or can be reconstructed).

Sensitive content provided in @code url.full @endcode SHOULD be scrubbed when instrumentations can identify it.

Query string values for the following keys SHOULD be redacted by default and replaced by the value @code REDACTED @endcode:

This list is subject to change over time.

When a query string value is redacted, the query string key SHOULD still be preserved, e.g. @code https://www.example.com/path?color=blue&sig=REDACTED @endcode. */ static constexpr const char *kUrlFull = "url.full"; /** The URI path component

Sensitive content provided in @code url.path @endcode SHOULD be scrubbed when instrumentations can identify it. */ static constexpr const char *kUrlPath = "url.path"; /** The URI query component

Sensitive content provided in @code url.query @endcode SHOULD be scrubbed when instrumentations can identify it.

Query string values for the following keys SHOULD be redacted by default and replaced by the value @code REDACTED @endcode:

This list is subject to change over time.

When a query string value is redacted, the query string key SHOULD still be preserved, e.g. @code q=OpenTelemetry&sig=REDACTED @endcode. */ static constexpr const char *kUrlQuery = "url.query"; /** The URI scheme component identifying the used protocol. */ static constexpr const char *kUrlScheme = "url.scheme"; } // namespace url } // namespace semconv OPENTELEMETRY_END_NAMESPACE