Skip to content

Commit

Permalink
return concrete sink type
Browse files Browse the repository at this point in the history
  • Loading branch information
Achooo committed Apr 26, 2023
1 parent cf0b430 commit 8f63cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/hcp/telemetry/otel_sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func NewOTELReader(client client.MetricsClient, endpoint string, exportInterval
return otelsdk.NewPeriodicReader(exporter, otelsdk.WithInterval(exportInterval))
}

func NewOTELSink(opts *OTELSinkOpts) (gometrics.MetricSink, error) {
func NewOTELSink(opts *OTELSinkOpts) (*OTELSink, error) {
if opts.Logger == nil || opts.Reader == nil || opts.Ctx == nil {
return nil, fmt.Errorf("failed to init OTEL sink: provide valid OTELSinkOpts")
}
Expand Down

0 comments on commit 8f63cdd

Please sign in to comment.