mirror of
https://github.com/hanzoai/telemetry.git
synced 2026-10-30 20:01:49 +00:00
Fixes https://github.com/open-telemetry/opentelemetry-collector/issues/8950 The logic behind this, is that during merging and splitting we should not care about the export func (see complicated logic removed in FakeRequest of in the pdata requests implementations). Also, this simplify what user should carry with the request. Signed-off-by: Bogdan Drutu <[email protected]>
22 lines
818 B
Go
22 lines
818 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package xexporterhelper // import "go.opentelemetry.io/collector/exporter/exporterhelper/xexporterhelper"
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
var (
|
|
// errNilConfig is returned when an empty name is given.
|
|
errNilConfig = errors.New("nil config")
|
|
// errNilLogger is returned when a logger is nil
|
|
errNilLogger = errors.New("nil logger")
|
|
// errNilConsumeRequest is returned when a nil PushTraces is given.
|
|
errNilConsumeRequest = errors.New("nil RequestConsumeFunc")
|
|
// errNilPushProfileData is returned when a nil PushProfiles is given.
|
|
errNilPushProfileData = errors.New("nil PushProfiles")
|
|
// errNilProfilesConverter is returned when a nil RequestFromProfilesFunc is given.
|
|
errNilProfilesConverter = errors.New("nil RequestFromProfilesFunc")
|
|
)
|