Skip to content

Commit

Permalink
must call cancel before returning error
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgajg1134 committed Feb 12, 2024
1 parent 2aa0bcc commit 4b59856
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exporter/datadogexporter/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ func (f *factory) createMetricsExporter(
}
acfg, err := newTraceAgentConfig(ctx, set, cfg, hostProvider)
if err != nil {
cancel()
return nil, err
}
statsToAgent := make(chan *pb.StatsPayload)
Expand Down

0 comments on commit 4b59856

Please sign in to comment.