package throttler
import "github.com/uber/jaeger-client-go/internal/throttler"
Index ¶
Types ¶
type DefaultThrottler ¶
type DefaultThrottler struct{}
DefaultThrottler doesn't throttle at all.
func (DefaultThrottler) IsAllowed ¶
func (t DefaultThrottler) IsAllowed(operation string) bool
IsAllowed implements Throttler#IsAllowed.
type Throttler ¶
type Throttler interface { // IsAllowed determines whether the operation should be allowed and not be // throttled. IsAllowed(operation string) bool }
Throttler is used to rate limits operations. For example, given how debug spans are always sampled, a throttler can be enabled per client to rate limit the amount of debug spans a client can start.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal/throttler/remote |
- Version
- v2.30.0+incompatible (latest)
- Published
- Dec 7, 2021
- Platform
- linux/amd64
- Last checked
- 7 hours ago –
Tools for package owners.