File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ package exporterhelper // import "go.opentelemetry.io/collector/exporter/exporte
5
5
6
6
import (
7
7
"context"
8
- "time"
9
-
10
8
"go.opentelemetry.io/collector/component"
11
9
"go.opentelemetry.io/collector/consumer"
12
10
"go.opentelemetry.io/collector/exporter"
@@ -232,21 +230,3 @@ func (be *baseExporter) setOnTemporaryFailure(onTemporaryFailure onRequestHandli
232
230
rs .onTemporaryFailure = onTemporaryFailure
233
231
}
234
232
}
235
-
236
- // timeoutSender is a requestSender that adds a `timeout` to every request that passes this sender.
237
- type timeoutSender struct {
238
- baseRequestSender
239
- cfg TimeoutSettings
240
- }
241
-
242
- func (ts * timeoutSender ) send (req internal.Request ) error {
243
- // Intentionally don't overwrite the context inside the request, because in case of retries deadline will not be
244
- // updated because this deadline most likely is before the next one.
245
- ctx := req .Context ()
246
- if ts .cfg .Timeout > 0 {
247
- var cancelFunc func ()
248
- ctx , cancelFunc = context .WithTimeout (req .Context (), ts .cfg .Timeout )
249
- defer cancelFunc ()
250
- }
251
- return req .Export (ctx )
252
- }
You can’t perform that action at this time.
0 commit comments