Skip to content

Commit

Permalink
Merge pull request #2859 from lpegoraro/fix/agent-fail-when-otel-vers…
Browse files Browse the repository at this point in the history
…ion-fails

fix(agent): add return of error in case of any error on getting the v…
  • Loading branch information
mfiedorowicz authored Dec 11, 2023
2 parents afe37ba + d9e372b commit 44c436e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions agent/backend/otel/otel.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ func (o *openTelemetryBackend) Version() (string, error) {
case finalStatus := <-status:
if finalStatus.Error != nil {
o.logger.Error("error during call of otelcol-contrib version", zap.Error(finalStatus.Error))
return "", finalStatus.Error
} else {
output := finalStatus.Stdout
o.otelCurrVersion = output[0]
Expand Down

0 comments on commit 44c436e

Please sign in to comment.