Skip to content

Commit

Permalink
Merge pull request #9 from cjs/fix-error-check
Browse files Browse the repository at this point in the history
fix inverted error check
  • Loading branch information
jzelinskie committed Apr 15, 2022
2 parents f164bfe + a6cae92 commit ec5ba7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otel.go
Expand Up @@ -125,7 +125,7 @@ func OpenTelemetryRunE(flagPrefix string, prerunLevel zerolog.Level) CobraRunFun

func initOtelTracer(exporter trace.SpanExporter, serviceName string, propagators []string) error {
res, err := setResource(serviceName)
if err == nil {
if err != nil {
return err
}

Expand Down

0 comments on commit ec5ba7d

Please sign in to comment.