Documentation ¶
Index ¶
Constants ¶
View Source
const ( AppInstanceExceededLogRateLimitCount = "AppInstanceExceededLogRateLimitCount" LogRateLimitExceededLogInterval = time.Second )
View Source
const ( MAX_MESSAGE_SIZE = 61440 DefaultLogSource = "LOG" )
Variables ¶
This section is empty.
Functions ¶
func NewLogRateLimiter ¶
func NewLogRateLimiter( ctx context.Context, metronClient loggingclient.IngressClient, tags map[string]string, maxLogLinesPerSecond int, maxLogBytesPerSecond int64, logMetricsEmitInterval time.Duration, ) *logRateLimiter
Types ¶
type ConcurrentBuffer ¶
func NewConcurrentBuffer ¶
func NewConcurrentBuffer(payload *bytes.Buffer) *ConcurrentBuffer
func (*ConcurrentBuffer) Reset ¶
func (b *ConcurrentBuffer) Reset()
type LogStreamer ¶
type LogStreamer interface { Stdout() io.Writer Stderr() io.Writer UpdateTags(map[string]string) Flush() WithSource(sourceName string) LogStreamer SourceName() string Stop() }
func New ¶
func New(config executor.LogConfig, metronClient loggingclient.IngressClient, maxLogLinesPerSecond int, maxLogBytesPerSecond int64, metricReportInterval time.Duration) LogStreamer
func NewBufferStreamer ¶
func NewBufferStreamer(stdout, stderr io.Writer) LogStreamer
func NewNoopStreamer ¶
func NewNoopStreamer() LogStreamer
Source Files ¶
Click to show internal directories.
Click to hide internal directories.