Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/otlp/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ func NewPipeline(cfg PipelineConfig) (*Pipeline, error) {
if err != nil {
return nil, err
}

// HACK: ensure flags are not-nil
// TODO: fix this upstream.
_ = service.NewCommand(col)
return &Pipeline{col}, nil
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/otlp/model/translator/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func WithHistogramMode(mode HistogramMode) Option {
return func(t *translatorConfig) error {

switch mode {
case HistogramModeNoBuckets, HistogramModeCounters:
case HistogramModeNoBuckets, HistogramModeCounters, HistogramModeDistributions:
t.HistMode = mode
default:
return fmt.Errorf("unknown histogram mode: %q", mode)
Expand Down