Skip to content

Commit

Permalink
use errors.New
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacd committed Apr 5, 2023
1 parent 41462c8 commit fa0452c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion processor/batchprocessor/batch_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package batchprocessor // import "go.opentelemetry.io/collector/processor/batchp

import (
"context"
"errors"
"fmt"
"runtime"
"sort"
Expand All @@ -37,7 +38,7 @@ import (
)

// errTooManyBatchers is returned when the MetadataCardinalityLimit has been reached.
var errTooManyBatchers = consumererror.NewPermanent(fmt.Errorf("too many batcher metadata-value combinations"))
var errTooManyBatchers = consumererror.NewPermanent(errors.New("too many batcher metadata-value combinations"))

// attributeSet is a stand-in for otel-go's attribute.Set. See
// https://github.com/open-telemetry/opentelemetry-collector/pull/7325#discussion_r1126972549.
Expand Down

0 comments on commit fa0452c

Please sign in to comment.