| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
package consumertest |
| 5 |
|
| 6 |
import ( |
| 7 |
"context" |
| 8 |
|
| 9 |
"go.opentelemetry.io/collector/pdata/plog" |
| 10 |
"go.opentelemetry.io/collector/pdata/pmetric" |
| 11 |
"go.opentelemetry.io/collector/pdata/pprofile" |
| 12 |
"go.opentelemetry.io/collector/pdata/ptrace" |
| 13 |
) |
| 14 |
|
| 15 |
|
| 16 |
func NewNop() Consumer { |
| 17 |
return &baseConsumer{ |
| 18 |
ConsumeTracesFunc: func(context.Context, ptrace.Traces) error { return nil }, |
| 19 |
ConsumeMetricsFunc: func(context.Context, pmetric.Metrics) error { return nil }, |
| 20 |
ConsumeLogsFunc: func(context.Context, plog.Logs) error { return nil }, |
| 21 |
ConsumeProfilesFunc: func(context.Context, pprofile.Profiles) error { return nil }, |
| 22 |
} |
| 23 |
} |