| 1 |
// Copyright The OpenTelemetry Authors |
| 2 |
// SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
package obsconsumer // import "go.opentelemetry.io/collector/service/internal/obsconsumer" |
| 5 |
|
| 6 |
import ( |
| 7 |
"go.opentelemetry.io/otel/metric" |
| 8 |
"go.uber.org/zap" |
| 9 |
) |
| 10 |
|
| 11 |
// Settings defines the settings for telemetry in the obsconsumer package. |
| 12 |
type Settings struct { |
| 13 |
// ItemCounter is the metric to count the number of items processed. |
| 14 |
ItemCounter metric.Int64Counter |
| 15 |
|
| 16 |
// SizeCounter is the metric to count the size of items processed. |
| 17 |
SizeCounter metric.Int64Counter |
| 18 |
|
| 19 |
// Logger is the logger for the obsconsumer package. |
| 20 |
Logger *zap.Logger |
| 21 |
} |