mirror of
https://github.com/hanzoai/telemetry.git
synced 2026-10-30 20:01:49 +00:00
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description This is part of #11131, splitting the exporterhelper module with a new `internal` submodule that holds everything shared by the signals. This is so a new `exporterhelperprofiles` module can make use of the shared structs.
16 lines
422 B
Go
16 lines
422 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package exporterhelper // import "go.opentelemetry.io/collector/exporter/exporterhelper"
|
|
|
|
import (
|
|
"time"
|
|
|
|
"go.opentelemetry.io/collector/exporter/exporterhelper/internal"
|
|
)
|
|
|
|
// NewThrottleRetry creates a new throttle retry error.
|
|
func NewThrottleRetry(err error, delay time.Duration) error {
|
|
return internal.NewThrottleRetry(err, delay)
|
|
}
|