[Snippet rust]
```rust
async fn calculate_entity_and_global_success_rate(
```
Path: hyperswitch/crates/external_services/src/grpc_client/dynamic_routing/success_rate_client.rs :: calculate_entity_and_global_success_rate (function, crate=external_services)

Negatives:
- hyperswitch/crates/hyperswitch_connectors/src/connectors/placetopay.rs :: get_connector_about
- hyperswitch/crates/router/src/core/payments/types.rs :: get_all_captures
- hyperswitch/crates/hyperswitch_connectors/src/connectors/paysafe.rs :: get_request_body
- hyperswitch/crates/hyperswitch_connectors/src/connectors/novalnet.rs :: get_webhook_object_from_body
- hyperswitch/crates/router/tests/connectors/mifinity.rs :: get_default_payment_info