Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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.
Click to show internal directories.
Click to hide internal directories.