-
Notifications
You must be signed in to change notification settings - Fork 307
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
Api Security sampling #4268
Api Security sampling #4268
Conversation
Overall package sizeSelf size: 6.46 MB Dependency sizes
🤖 This report was automatically generated by heaviest-objects-in-the-universe |
BenchmarksBenchmark execution time: 2024-05-06 13:07:24 Comparing candidate commit a37626f in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 259 metrics, 7 unstable metrics. |
17c5b34
to
6ac9ce5
Compare
What does this PR do?
Changes Api Security sampling algorithm
It uses a LRU cache with a ttl and a max number of elements to not report repeated schemas in some interval of time.
At the moment, when response body schema has been calculated, the
manual.keep
tag is added to the span in order to alter span priority to prevent it from being discarded by the tracer or agent.Motivation
Instead of using a sampling based on random number generation, new algorithm takes into account endpoint route, http method and response status code.
Plugin Checklist
Additional Notes
,