...

Package internal

import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc/internal"
Overview
Index
Subdirectories

Overview ▾

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.

type PartialSuccess

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.

type PartialSuccess struct {
    ErrorMessage  string
    RejectedItems int64
    RejectedKind  string
}

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.

Subdirectories

Name Synopsis
..