LogsSenderFlushTimeout changes the default flush timeout (250ms), this is mostly useful for tests.
(timeout time.Duration)
| 106 | // LogsSenderFlushTimeout changes the default flush timeout (250ms), |
| 107 | // this is mostly useful for tests. |
| 108 | func LogsSenderFlushTimeout(timeout time.Duration) func(*logsSenderOptions) { |
| 109 | return func(o *logsSenderOptions) { |
| 110 | o.flushTimeout = timeout |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | type logsSenderOptions struct { |
| 115 | flushTimeout time.Duration |
no outgoing calls