processor/internal/err.go
raw| 1 | // Copyright The OpenTelemetry Authors |
| 2 | // SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| 4 | package internal // import "go.opentelemetry.io/collector/processor/internal" |
| 5 | |
| 6 | import ( |
| 7 | "fmt" |
| 8 | |
| 9 | "go.opentelemetry.io/collector/component" |
| 10 | ) |
| 11 | |
| 12 | func ErrIDMismatch(id component.ID, typ component.Type) error { |
| 13 | return fmt.Errorf("component type mismatch: component ID %q does not have type %q", id, typ) |
| 14 | } |