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

Removes path from span name to normalize it #145

Closed
wants to merge 39 commits into from

Conversation

dmfallak
Copy link

@dmfallak dmfallak commented Sep 5, 2024

Problem or Feature

Casper generates very high cardinality for span names. The service does not perform the mapping from path to endpoint within the downstream service, but instead does the routing from namespace to downstream service. This makes it difficult for it to map a path to a low-cardinality span name.

Solution

Remove path from span name. URI is still retrievable from the request.uri attribute.

Update to ntex 1.1 (breaking changes)
- Use bytes-based regex engine
- Use `LuaString` instead of `String` where possible
- Replace `safe_cell` with `ouroboros`
- Use global regex cache instead of local one
- Add `sha1`/`encrypt`/`decrypt` functions
- Make `sha256` sync (do not send operation to threadpool (yet))
- Rename `base64_urlsafe_encode` to `base64url_encode` (same for decode)
- Add `hex_encode`/`hex_decode` functions
Fix the handler to avoid recursive overflow.
@dmfallak dmfallak requested a review from khvzak September 5, 2024 14:09
Base automatically changed from dev to main September 6, 2024 10:25
@dmfallak dmfallak closed this Sep 6, 2024
@dmfallak
Copy link
Author

dmfallak commented Sep 6, 2024

Closed in favour of the following change that allows overriding default span name in lua code: 289f9e8

@dmfallak dmfallak deleted the u/dfallak/normalize-span-names branch September 6, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants