Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove query params and product ID from span names #1668

Merged

Conversation

joshleecreates
Copy link
Contributor

@joshleecreates joshleecreates commented Jul 14, 2024

Changes

  • adds a transform processor to the collector trace pipeline
  • adds two rules for transforming span names:
    • Strip anything after a "?"
    • Replace productID with a token in "GET /api/products/{productID}" spans

Merge Requirements

For new features contributions please make sure you have completed the following
essential items:

  • CHANGELOG.md updated to document new feature additions
    * [ ] Appropriate documentation updates in the [docs][]
  • Appropriate Helm chart updates in the [helm-charts][]

@joshleecreates joshleecreates requested a review from a team July 14, 2024 16:37
@github-actions github-actions bot added the helm-update-required Requires an update to the Helm chart when released label Jul 14, 2024
- adds a transform processor
- adds two rules for transforming span names:
  - Strip anything after a "?"
  - Replace productID with a token in "GET /api/products/{productID}"
    spans
@puckpuck
Copy link
Contributor

We should add a changelog for this

@puckpuck puckpuck merged commit 91c7df4 into open-telemetry:main Jul 16, 2024
28 checks passed
@joshleecreates joshleecreates deleted the issue-1665-full-url-spannames branch July 16, 2024 11:58
ahealy-newr pushed a commit to ahealy-newr/opentelemetry-demo-ahealy that referenced this pull request Jul 24, 2024
* Fixes open-telemetry#1665 Query Params in Span Name

- adds a transform processor
- adds two rules for transforming span names:
  - Strip anything after a "?"
  - Replace productID with a token in "GET /api/products/{productID}"
    spans

* fix lint errors

* update changelog

---------

Co-authored-by: Juliano Costa <julianocosta89@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
helm-update-required Requires an update to the Helm chart when released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Frontend spans are exploding cardinality by including request query params
3 participants