OpenTelemetry PHP

UrlAttributes

Semantic attributes and corresponding values for url.

Tags
see
https://opentelemetry.io/docs/specs/semconv/registry/attributes/url/

Table of Contents

Constants

URL_FRAGMENT  = 'url.fragment'
The [URI fragment](https://www.rfc-editor.org/rfc/rfc3986#section-3.5) component
URL_FULL  = 'url.full'
Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) For network calls, URL usually has `scheme://host[:port][path][?query][#fragment]` format, where the fragment is not transmitted over HTTP, but if it is known, it SHOULD be included nevertheless.
URL_PATH  = 'url.path'
The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component
URL_QUERY  = 'url.query'
The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component
URL_SCHEME  = 'url.scheme'
The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol.

Constants

URL_FRAGMENT

The [URI fragment](https://www.rfc-editor.org/rfc/rfc3986#section-3.5) component

public mixed URL_FRAGMENT = 'url.fragment'
Tags
stable

URL_FULL

Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) For network calls, URL usually has `scheme://host[:port][path][?query][#fragment]` format, where the fragment is not transmitted over HTTP, but if it is known, it SHOULD be included nevertheless.

public mixed URL_FULL = 'url.full'

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

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

Sensitive content provided in url.full 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 REDACTED:

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. https://www.example.com/path?color=blue&sig=REDACTED.

Tags
stable

URL_PATH

The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component

public mixed URL_PATH = 'url.path'

Sensitive content provided in url.path SHOULD be scrubbed when instrumentations can identify it.

Tags
stable

URL_QUERY

The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component

public mixed URL_QUERY = 'url.query'

Sensitive content provided in url.query 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 REDACTED:

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. q=OpenTelemetry&sig=REDACTED.

Tags
stable

URL_SCHEME

The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol.

public mixed URL_SCHEME = 'url.scheme'
Tags
stable

        
On this page

Search results