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

Fix incomplete bandit response time metrics #498

Merged
merged 2 commits into from
Feb 13, 2025

Conversation

binaryseed
Copy link
Collaborator

@binaryseed binaryseed commented Feb 11, 2025

This PR fixes a display bug reported in #489

The bug exists because there were assumptions in the Transaction processing logic that relied on behavior in cowboy that isn't present in bandit, specifically that cowboy would spawn a process to handle the request after the start telemetry was executed, so that process spawn had to be considered when processing total time.

The fix is to only apply that extra processing when the transaction is marked as coming from cowboy.

Also included is a modification to the Transaction breakdown metrics that will give those charts the total time to take into account.

Closes #489

@tpitale tpitale merged commit e439b98 into master Feb 13, 2025
11 checks passed
@tpitale tpitale deleted the vince/bandit-response-time-metric branch February 13, 2025 03:32
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.

Elixir response time missing when using Bandit
2 participants