Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Don't include query parameters as part of the "http.url" span attribute #268

@Kami

Description

@Kami

(Discussion moved from census-instrumentation/opencensus-python#725)

At the moment, http.url attribute of an HTTP request span contains full URL with query parameters (https://github.com/census-instrumentation/opencensus-specs/blob/master/trace/HTTP.md#attributes).

This is not ideal, because in a lot of scenarios, query parameters can contain sensitive data.

Things such as API keys, tokens, secrets, etc. That's a fairly common patterns when integrating with various webhook-like services which don't allow information such as secrets / tokens to be sent via HTTP headers so they are sent using query parameters.

It's also a fairly common pattern (for better or worse) when authenticating with various APIs.

Because of that, I propose removing query parameters part from the http.url span attribute.

To solve for a scenario where query parameters don't contain sensitive data (aka explicit opt-in or similar by a developer on the library level), we would add new http.query_params or similar attribute which is optional.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions