MCPcopy Create free account

hub / github.com/afex/hystrix-go / functions

Functions164 in github.com/afex/hystrix-go

↓ 60 callersMethodSum
Sum sums the values over the buckets in the last 10 seconds.
hystrix/rolling/rolling.go:79
↓ 59 callersMethodDefaultCollector
The Default Collector function will panic if collectors are not setup to specification.
hystrix/metrics.go:41
↓ 25 callersFunctionFlush
Flush purges all circuit and metric information from memory.
hystrix/circuit.go:56
↓ 24 callersFunctionGoC
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 callersFunctionConfigureCommand
ConfigureCommand applies settings for a circuit
hystrix/settings.go:58
↓ 20 callersMethodError
()
hystrix/hystrix.go:21
↓ 18 callersFunctionGetCircuit
GetCircuit returns the circuit for the given command and whether this call created it.
hystrix/circuit.go:34
↓ 14 callersMethodIncrement
Increment increments the number in current timeBucket.
hystrix/rolling/rolling.go:53
↓ 13 callersMethodPercentile
Percentile computes the percentile given with a linear interpolation.
hystrix/rolling/rolling_timing.go:115
↓ 13 callersFunctiongetSettings
(name string)
hystrix/settings.go:96
↓ 11 callersMethodAdd
Add appends the time.Duration given to the current time bucket.
hystrix/rolling/rolling_timing.go:104
↓ 11 callersMethodincrementCounterMetric
(prefix string, i float64)
plugins/statsd_collector.go:125
↓ 10 callersMethodPrintf
(format string, items ...interface{})
hystrix/logger.go:4
↓ 9 callersMethodCount
(name string, value int64, tags []string, rate float64)
plugins/datadog_collector.go:35
↓ 9 callersMethodTimeouts
Timeouts returns the rolling number of timeouts
hystrix/metric_collector/default_metric_collector.go:85
↓ 9 callersMethodincrementCounterMetric
(prefix string, i float64)
plugins/graphite_aggregator.go:75
↓ 8 callersMethodFailures
Failures returns the rolling number of failures
hystrix/metric_collector/default_metric_collector.go:64
↓ 7 callersMethodNumRequests
NumRequests returns the rolling number of requests
hystrix/metric_collector/default_metric_collector.go:43
↓ 6 callersMethodActiveCount
()
hystrix/pool.go:35
↓ 6 callersMethodContextCanceled
()
hystrix/metric_collector/default_metric_collector.go:98
↓ 6 callersMethodContextDeadlineExceeded
()
hystrix/metric_collector/default_metric_collector.go:104
↓ 6 callersFunctionDoC
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 callersMethodFallbackSuccesses
FallbackSuccesses returns the rolling number of fallback successes
hystrix/metric_collector/default_metric_collector.go:92
↓ 5 callersMethodIsOpen
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 callersMethodSuccesses
Successes returns the rolling number of successes
hystrix/metric_collector/default_metric_collector.go:57
↓ 5 callersMethoderrorWithFallback
errorWithFallback triggers the fallback while reporting the appropriate metric events.
hystrix/hystrix.go:263
↓ 5 callersFunctionsleepingCommand
(t *testing.T, name string, duration time.Duration)
hystrix/eventstream_test.go:38
↓ 4 callersMethodMean
Mean computes the average timing in the last 60 seconds.
hystrix/rolling/rolling_timing.go:135
↓ 4 callersFunctionNewNumber
NewNumber initializes a RollingNumber struct.
hystrix/rolling/rolling.go:20
↓ 4 callersMethodReset
Reset resets the internal counters and timers.
hystrix/metric_collector/metric_collector.go:66
↓ 4 callersMethodreportEvent
(eventType string)
hystrix/hystrix.go:255
↓ 3 callersMethodErrorPercent
(now time.Time)
hystrix/metrics.go:133
↓ 3 callersMethodGauge
(name string, value float64, tags []string, rate float64)
plugins/datadog_collector.go:36
↓ 3 callersMethodIsHealthy
(now time.Time)
hystrix/metrics.go:148
↓ 3 callersMethodMax
Max returns the maximum value seen in the last 10 seconds.
hystrix/rolling/rolling.go:96
↓ 3 callersMethodReportEvent
ReportEvent records command metrics for tracking recent error rates and exposing data to the dashboard.
hystrix/circuit.go:167
↓ 3 callersMethodReturn
(ticket *struct{})
hystrix/pool.go:24
↓ 3 callersMethodShortCircuits
ShortCircuits returns the rolling number of short circuits
hystrix/metric_collector/default_metric_collector.go:78
↓ 3 callersMethodUpdateMax
UpdateMax updates the maximum value in the current bucket.
hystrix/rolling/rolling.go:67
↓ 3 callersFunctionnewExecutorPool
(name string)
hystrix/pool.go:10
↓ 3 callersMethodsetOpen
()
hystrix/circuit.go:138
↓ 3 callersFunctionstartTestServer
()
hystrix/eventstream_test.go:29
↓ 3 callersMethodstopTestServer
()
hystrix/eventstream_test.go:21
↓ 2 callersMethodErrors
Errors returns the rolling number of errors
hystrix/metric_collector/default_metric_collector.go:50
↓ 2 callersMethodFallbackFailures
FallbackFailures returns the rolling number of fallback failures
hystrix/metric_collector/default_metric_collector.go:111
↓ 2 callersFunctionGetCircuitSettings
()
hystrix/settings.go:109
↓ 2 callersFunctionGo
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 callersFunctionInitializeStatsdCollector
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 callersMethodNewStatsdCollector
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 callersMethodRequests
()
hystrix/metrics.go:123
↓ 2 callersMethodRunDuration
RunDuration returns the rolling run duration
hystrix/metric_collector/default_metric_collector.go:125
↓ 2 callersMethodSortedDurations
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 callersMethodStop
Stop shuts down the metric collection routine
hystrix/eventstream.go:37
↓ 2 callersMethodTimeInMilliseconds
(name string, value float64, tags []string, rate float64)
plugins/datadog_collector.go:37
↓ 2 callersMethodTotalDuration
TotalDuration returns the rolling total duration
hystrix/metric_collector/default_metric_collector.go:118
↓ 2 callersMethodUpdate
Update accepts a set of metrics from a command execution for remote instrumentation
hystrix/metric_collector/metric_collector.go:64
↓ 2 callersFunctionfailingCommand
(t *testing.T, name string, duration time.Duration)
hystrix/eventstream_test.go:54
↓ 2 callersFunctiongenerateLatencyTimings
(r *rolling.Timing)
hystrix/eventstream.go:226
↓ 2 callersMethodgetCurrentBucket
()
hystrix/rolling/rolling.go:28
↓ 2 callersFunctiongrabFirstCommandFromStream
grabFirstFromStream reads on the http request until we see the first full result printed
hystrix/eventstream_test.go:71
↓ 2 callersFunctionmetricFailingPercent
(p int)
hystrix/metrics_test.go:10
↓ 2 callersFunctionnewMetricExchange
(name string)
hystrix/metrics.go:26
↓ 2 callersMethodordinal
(length int, percentile float64)
hystrix/rolling/rolling_timing.go:126
↓ 2 callersMethodremoveOldBuckets
()
hystrix/rolling/rolling.go:41
↓ 2 callersMethodrequestsLocked
()
hystrix/metrics.go:129
↓ 2 callersMethodsetGauge
(prefix string, value int64)
plugins/statsd_collector.go:118
↓ 2 callersFunctionstreamMetrics
(t *testing.T, url string)
hystrix/eventstream_test.go:112
↓ 2 callersMethodupdateTimerMetric
(prefix string, dur time.Duration)
plugins/graphite_aggregator.go:86
↓ 2 callersMethodupdateTimerMetric
(prefix string, dur time.Duration)
plugins/statsd_collector.go:135
↓ 2 callersMethodwriteToRequests
(eventBytes []byte)
hystrix/eventstream.go:176
↓ 1 callersMethodAllowRequest
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 callersMethodAvg
(now time.Time)
hystrix/rolling/rolling.go:114
↓ 1 callersMethodIncrementMetrics
(wg *sync.WaitGroup, collector metricCollector.MetricCollector, update *commandExecution, totalDuration time.D
hystrix/metrics.go:69
↓ 1 callersMethodInitializeMetricCollectors
InitializeMetricCollectors runs the registried MetricCollector Initializers to create an array of MetricCollectors.
hystrix/metric_collector/metric_collector.go:23
↓ 1 callersMethodMonitor
()
hystrix/metrics.go:52
↓ 1 callersMethodMonitor
()
hystrix/pool_metrics.go:43
↓ 1 callersFunctionNewDatadogCollectorWithClient
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 callersFunctionNewStreamHandler
NewStreamHandler returns a server capable of exposing dashboard metrics via HTTP.
hystrix/eventstream.go:18
↓ 1 callersFunctionNewTiming
NewTiming creates a RollingTiming struct.
hystrix/rolling/rolling_timing.go:26
↓ 1 callersMethodRegister
Register places a MetricCollector Initializer in the registry maintained by this metricCollectorRegistry.
hystrix/metric_collector/metric_collector.go:35
↓ 1 callersMethodRejects
Rejects returns the rolling number of rejects
hystrix/metric_collector/default_metric_collector.go:71
↓ 1 callersMethodReset
()
hystrix/metrics.go:114
↓ 1 callersMethodReset
()
hystrix/pool_metrics.go:35
↓ 1 callersMethodReset
Reset resets all metrics in this collector to 0.
hystrix/metric_collector/default_metric_collector.go:152
↓ 1 callersMethodStart
Start begins watching the in-memory circuit breakers for metrics
hystrix/eventstream.go:30
↓ 1 callersMethodallowSingleTest
()
hystrix/circuit.go:121
↓ 1 callersFunctioncurrentTime
()
hystrix/eventstream.go:324
↓ 1 callersMethodgetCurrentBucket
()
hystrix/rolling/rolling_timing.go:75
↓ 1 callersFunctiongrabFirstThreadPoolFromStream
(t *testing.T, url string)
hystrix/eventstream_test.go:92
↓ 1 callersMethodloop
()
hystrix/eventstream.go:73
↓ 1 callersFunctionnewCircuitBreaker
newCircuitBreaker creates a CircuitBreaker with associated Health
hystrix/circuit.go:68
↓ 1 callersFunctionnewPoolMetrics
(name string)
hystrix/pool_metrics.go:22
↓ 1 callersMethodpublishMetrics
(cb *CircuitBreaker)
hystrix/eventstream.go:90
↓ 1 callersMethodpublishThreadPools
(pool *executorPool)
hystrix/eventstream.go:144
↓ 1 callersMethodregister
(req *http.Request)
hystrix/eventstream.go:205
↓ 1 callersMethodremoveOldBuckets
()
hystrix/rolling/rolling_timing.go:92
↓ 1 callersFunctionrotateDelay
()
loadtest/service/main.go:97
↓ 1 callersMethodsetClose
()
hystrix/circuit.go:152
↓ 1 callersFunctiontimedHandler
(fn func(w http.ResponseWriter, r *http.Request), stats statsd.Statter)
loadtest/service/main.go:69
↓ 1 callersMethodtoggleForceOpen
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