internal

package
v1.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetricPartialSuccessError

func MetricPartialSuccessError(itemsRejected int64, errorMessage string) error

MetricPartialSuccessError returns an error describing a partial success response for the metric signal.

func TracePartialSuccessError

func TracePartialSuccessError(itemsRejected int64, errorMessage string) error

TracePartialSuccessError returns an error describing a partial success response for the trace signal.

Types

type PartialSuccess

type PartialSuccess struct {
	ErrorMessage  string
	RejectedItems int64
	RejectedKind  string
}

PartialSuccess represents the underlying error for all handling OTLP partial success messages. Use `errors.Is(err, PartialSuccess{})` to test whether an error passed to the OTel error handler belongs to this category.

func (PartialSuccess) Error

func (ps PartialSuccess) Error() string

Error implements the error interface.

func (PartialSuccess) Is

func (ps PartialSuccess) Is(err error) bool

Is supports the errors.Is() interface.

Directories

Path Synopsis
Package retry provides request retry functionality that can perform configurable exponential backoff for transient errors and honor any explicit throttle responses received.
Package retry provides request retry functionality that can perform configurable exponential backoff for transient errors and honor any explicit throttle responses received.
Package transform provides transformation functionality from the sdk/metric/metricdata data-types into OTLP data-types.
Package transform provides transformation functionality from the sdk/metric/metricdata data-types into OTLP data-types.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL