- Add DISCOVERY_LOG_LEVEL=debug - Add DISCOVERY_SHOW_PROGRESS=true - Temporary changes for debugging InitializerProcessor fixes on production
24 lines
545 B
PHP
24 lines
545 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Framework\CircuitBreaker;
|
|
|
|
/**
|
|
* Interface for Circuit Breaker implementations
|
|
*
|
|
* Provides a contract for circuit breaker functionality
|
|
* that can be implemented by different circuit breaker implementations
|
|
* or test doubles.
|
|
*/
|
|
interface CircuitBreakerInterface
|
|
{
|
|
/**
|
|
* Get metrics for a service
|
|
*
|
|
* @param string $service Service name
|
|
* @return CircuitBreakerMetrics Service metrics
|
|
*/
|
|
public function getMetrics(string $service): CircuitBreakerMetrics;
|
|
}
|