Skip to content
This repository has been 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

Open
Kami opened this issue Jul 23, 2019 · 1 comment
Open

Comments

@Kami
Copy link

Kami commented Jul 23, 2019

(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.

@codefromthecrypt
Copy link

codefromthecrypt commented Jul 24, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants