Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/afex/hystrix-go
/ functions
Functions
164 in github.com/afex/hystrix-go
⨍
Functions
164
◇
Types & classes
37
↓ 60 callers
Method
Sum
Sum sums the values over the buckets in the last 10 seconds.
hystrix/rolling/rolling.go:79
↓ 59 callers
Method
DefaultCollector
The Default Collector function will panic if collectors are not setup to specification.
hystrix/metrics.go:41
↓ 25 callers
Function
Flush
Flush purges all circuit and metric information from memory.
hystrix/circuit.go:56
↓ 24 callers
Function
GoC
GoC runs your function while tracking the health of previous calls to it. If your function begins slowing down or failing repeatedly, we will block ne
hystrix/hystrix.go:73
↓ 20 callers
Function
ConfigureCommand
ConfigureCommand applies settings for a circuit
hystrix/settings.go:58
↓ 20 callers
Method
Error
()
hystrix/hystrix.go:21
↓ 18 callers
Function
GetCircuit
GetCircuit returns the circuit for the given command and whether this call created it.
hystrix/circuit.go:34
↓ 14 callers
Method
Increment
Increment increments the number in current timeBucket.
hystrix/rolling/rolling.go:53
↓ 13 callers
Method
Percentile
Percentile computes the percentile given with a linear interpolation.
hystrix/rolling/rolling_timing.go:115
↓ 13 callers
Function
getSettings
(name string)
hystrix/settings.go:96
↓ 11 callers
Method
Add
Add appends the time.Duration given to the current time bucket.
hystrix/rolling/rolling_timing.go:104
↓ 11 callers
Method
incrementCounterMetric
(prefix string, i float64)
plugins/statsd_collector.go:125
↓ 10 callers
Method
Printf
(format string, items ...interface{})
hystrix/logger.go:4
↓ 9 callers
Method
Count
(name string, value int64, tags []string, rate float64)
plugins/datadog_collector.go:35
↓ 9 callers
Method
Timeouts
Timeouts returns the rolling number of timeouts
hystrix/metric_collector/default_metric_collector.go:85
↓ 9 callers
Method
incrementCounterMetric
(prefix string, i float64)
plugins/graphite_aggregator.go:75
↓ 8 callers
Method
Failures
Failures returns the rolling number of failures
hystrix/metric_collector/default_metric_collector.go:64
↓ 7 callers
Method
NumRequests
NumRequests returns the rolling number of requests
hystrix/metric_collector/default_metric_collector.go:43
↓ 6 callers
Method
ActiveCount
()
hystrix/pool.go:35
↓ 6 callers
Method
ContextCanceled
()
hystrix/metric_collector/default_metric_collector.go:98
↓ 6 callers
Method
ContextDeadlineExceeded
()
hystrix/metric_collector/default_metric_collector.go:104
↓ 6 callers
Function
DoC
DoC runs your function in a synchronous manner, blocking until either your function succeeds or an error is returned, including hystrix circuit errors
hystrix/hystrix.go:217
↓ 6 callers
Method
FallbackSuccesses
FallbackSuccesses returns the rolling number of fallback successes
hystrix/metric_collector/default_metric_collector.go:92
↓ 5 callers
Method
IsOpen
IsOpen is called before any Command execution to check whether or not it should be attempted. An "open" circuit means it is disabled.
hystrix/circuit.go:92
↓ 5 callers
Method
Successes
Successes returns the rolling number of successes
hystrix/metric_collector/default_metric_collector.go:57
↓ 5 callers
Method
errorWithFallback
errorWithFallback triggers the fallback while reporting the appropriate metric events.
hystrix/hystrix.go:263
↓ 5 callers
Function
sleepingCommand
(t *testing.T, name string, duration time.Duration)
hystrix/eventstream_test.go:38
↓ 4 callers
Method
Mean
Mean computes the average timing in the last 60 seconds.
hystrix/rolling/rolling_timing.go:135
↓ 4 callers
Function
NewNumber
NewNumber initializes a RollingNumber struct.
hystrix/rolling/rolling.go:20
↓ 4 callers
Method
Reset
Reset resets the internal counters and timers.
hystrix/metric_collector/metric_collector.go:66
↓ 4 callers
Method
reportEvent
(eventType string)
hystrix/hystrix.go:255
↓ 3 callers
Method
ErrorPercent
(now time.Time)
hystrix/metrics.go:133
↓ 3 callers
Method
Gauge
(name string, value float64, tags []string, rate float64)
plugins/datadog_collector.go:36
↓ 3 callers
Method
IsHealthy
(now time.Time)
hystrix/metrics.go:148
↓ 3 callers
Method
Max
Max returns the maximum value seen in the last 10 seconds.
hystrix/rolling/rolling.go:96
↓ 3 callers
Method
ReportEvent
ReportEvent records command metrics for tracking recent error rates and exposing data to the dashboard.
hystrix/circuit.go:167
↓ 3 callers
Method
Return
(ticket *struct{})
hystrix/pool.go:24
↓ 3 callers
Method
ShortCircuits
ShortCircuits returns the rolling number of short circuits
hystrix/metric_collector/default_metric_collector.go:78
↓ 3 callers
Method
UpdateMax
UpdateMax updates the maximum value in the current bucket.
hystrix/rolling/rolling.go:67
↓ 3 callers
Function
newExecutorPool
(name string)
hystrix/pool.go:10
↓ 3 callers
Method
setOpen
()
hystrix/circuit.go:138
↓ 3 callers
Function
startTestServer
()
hystrix/eventstream_test.go:29
↓ 3 callers
Method
stopTestServer
()
hystrix/eventstream_test.go:21
↓ 2 callers
Method
Errors
Errors returns the rolling number of errors
hystrix/metric_collector/default_metric_collector.go:50
↓ 2 callers
Method
FallbackFailures
FallbackFailures returns the rolling number of fallback failures
hystrix/metric_collector/default_metric_collector.go:111
↓ 2 callers
Function
GetCircuitSettings
()
hystrix/settings.go:109
↓ 2 callers
Function
Go
Go runs your function while tracking the health of previous calls to it. If your function begins slowing down or failing repeatedly, we will block new
hystrix/hystrix.go:55
↓ 2 callers
Function
InitializeStatsdCollector
InitializeStatsdCollector creates the connection to the Statsd server and should be called before any metrics are recorded. Users should ensure to ca
plugins/statsd_collector.go:65
↓ 2 callers
Method
NewStatsdCollector
NewStatsdCollector creates a collector for a specific circuit. The prefix given to this circuit will be {config.Prefix}.{circuit_name}.{metric}. Circu
plugins/statsd_collector.go:90
↓ 2 callers
Method
Requests
()
hystrix/metrics.go:123
↓ 2 callers
Method
RunDuration
RunDuration returns the rolling run duration
hystrix/metric_collector/default_metric_collector.go:125
↓ 2 callers
Method
SortedDurations
SortedDurations returns an array of time.Duration sorted from shortest to longest that have occurred in the last 60 seconds.
hystrix/rolling/rolling_timing.go:42
↓ 2 callers
Method
Stop
Stop shuts down the metric collection routine
hystrix/eventstream.go:37
↓ 2 callers
Method
TimeInMilliseconds
(name string, value float64, tags []string, rate float64)
plugins/datadog_collector.go:37
↓ 2 callers
Method
TotalDuration
TotalDuration returns the rolling total duration
hystrix/metric_collector/default_metric_collector.go:118
↓ 2 callers
Method
Update
Update accepts a set of metrics from a command execution for remote instrumentation
hystrix/metric_collector/metric_collector.go:64
↓ 2 callers
Function
failingCommand
(t *testing.T, name string, duration time.Duration)
hystrix/eventstream_test.go:54
↓ 2 callers
Function
generateLatencyTimings
(r *rolling.Timing)
hystrix/eventstream.go:226
↓ 2 callers
Method
getCurrentBucket
()
hystrix/rolling/rolling.go:28
↓ 2 callers
Function
grabFirstCommandFromStream
grabFirstFromStream reads on the http request until we see the first full result printed
hystrix/eventstream_test.go:71
↓ 2 callers
Function
metricFailingPercent
(p int)
hystrix/metrics_test.go:10
↓ 2 callers
Function
newMetricExchange
(name string)
hystrix/metrics.go:26
↓ 2 callers
Method
ordinal
(length int, percentile float64)
hystrix/rolling/rolling_timing.go:126
↓ 2 callers
Method
removeOldBuckets
()
hystrix/rolling/rolling.go:41
↓ 2 callers
Method
requestsLocked
()
hystrix/metrics.go:129
↓ 2 callers
Method
setGauge
(prefix string, value int64)
plugins/statsd_collector.go:118
↓ 2 callers
Function
streamMetrics
(t *testing.T, url string)
hystrix/eventstream_test.go:112
↓ 2 callers
Method
updateTimerMetric
(prefix string, dur time.Duration)
plugins/graphite_aggregator.go:86
↓ 2 callers
Method
updateTimerMetric
(prefix string, dur time.Duration)
plugins/statsd_collector.go:135
↓ 2 callers
Method
writeToRequests
(eventBytes []byte)
hystrix/eventstream.go:176
↓ 1 callers
Method
AllowRequest
AllowRequest is checked before a command executes, ensuring that circuit state and metric health allow it. When the circuit is open, this call will oc
hystrix/circuit.go:117
↓ 1 callers
Method
Avg
(now time.Time)
hystrix/rolling/rolling.go:114
↓ 1 callers
Method
IncrementMetrics
(wg *sync.WaitGroup, collector metricCollector.MetricCollector, update *commandExecution, totalDuration time.D
hystrix/metrics.go:69
↓ 1 callers
Method
InitializeMetricCollectors
InitializeMetricCollectors runs the registried MetricCollector Initializers to create an array of MetricCollectors.
hystrix/metric_collector/metric_collector.go:23
↓ 1 callers
Method
Monitor
()
hystrix/metrics.go:52
↓ 1 callers
Method
Monitor
()
hystrix/pool_metrics.go:43
↓ 1 callers
Function
NewDatadogCollectorWithClient
NewDatadogCollectorWithClient accepts an interface which allows you to provide your own implementation of a statsd client, alter configuration on "git
plugins/datadog_collector.go:106
↓ 1 callers
Function
NewStreamHandler
NewStreamHandler returns a server capable of exposing dashboard metrics via HTTP.
hystrix/eventstream.go:18
↓ 1 callers
Function
NewTiming
NewTiming creates a RollingTiming struct.
hystrix/rolling/rolling_timing.go:26
↓ 1 callers
Method
Register
Register places a MetricCollector Initializer in the registry maintained by this metricCollectorRegistry.
hystrix/metric_collector/metric_collector.go:35
↓ 1 callers
Method
Rejects
Rejects returns the rolling number of rejects
hystrix/metric_collector/default_metric_collector.go:71
↓ 1 callers
Method
Reset
()
hystrix/metrics.go:114
↓ 1 callers
Method
Reset
()
hystrix/pool_metrics.go:35
↓ 1 callers
Method
Reset
Reset resets all metrics in this collector to 0.
hystrix/metric_collector/default_metric_collector.go:152
↓ 1 callers
Method
Start
Start begins watching the in-memory circuit breakers for metrics
hystrix/eventstream.go:30
↓ 1 callers
Method
allowSingleTest
()
hystrix/circuit.go:121
↓ 1 callers
Function
currentTime
()
hystrix/eventstream.go:324
↓ 1 callers
Method
getCurrentBucket
()
hystrix/rolling/rolling_timing.go:75
↓ 1 callers
Function
grabFirstThreadPoolFromStream
(t *testing.T, url string)
hystrix/eventstream_test.go:92
↓ 1 callers
Method
loop
()
hystrix/eventstream.go:73
↓ 1 callers
Function
newCircuitBreaker
newCircuitBreaker creates a CircuitBreaker with associated Health
hystrix/circuit.go:68
↓ 1 callers
Function
newPoolMetrics
(name string)
hystrix/pool_metrics.go:22
↓ 1 callers
Method
publishMetrics
(cb *CircuitBreaker)
hystrix/eventstream.go:90
↓ 1 callers
Method
publishThreadPools
(pool *executorPool)
hystrix/eventstream.go:144
↓ 1 callers
Method
register
(req *http.Request)
hystrix/eventstream.go:205
↓ 1 callers
Method
removeOldBuckets
()
hystrix/rolling/rolling_timing.go:92
↓ 1 callers
Function
rotateDelay
()
loadtest/service/main.go:97
↓ 1 callers
Method
setClose
()
hystrix/circuit.go:152
↓ 1 callers
Function
timedHandler
(fn func(w http.ResponseWriter, r *http.Request), stats statsd.Statter)
loadtest/service/main.go:69
↓ 1 callers
Method
toggleForceOpen
toggleForceOpen allows manually causing the fallback logic for all instances of a given command.
hystrix/circuit.go:80
next →
1–100 of 164, ranked by callers