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

Add null checks and default values for backend related metric properties #12211

Merged
merged 3 commits into from
Jan 26, 2024

Conversation

RakhithaRR
Copy link
Contributor

This PR adds null checks and default values for backend related metric properties.

When a respond mediator is included in the request path, the gateway will not forward the request to the backend. In such cases, we need to populate the metrics related to backend in order to avoid errors in the flow. The following metrics were handled through this PR.

  • backend latency
  • request and response mediation latency
  • proxy response code
  • request destination

Related issue: https://github.com/wso2-enterprise/wso2-apim-internal/issues/5285

Fixes wso2/api-manager#2364

@RakhithaRR RakhithaRR merged commit 61fae1e into wso2:master Jan 26, 2024
6 of 7 checks passed
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.

[APIM 4.2.0] - apim_metrics.log file is not updating
2 participants