Skip to content

Commit

Permalink
fix: Log OTEL errors as warning level instead of debug (#1791)
Browse files Browse the repository at this point in the history
#### Summary

Fixes cloudquery/cloudquery-issues#1980 (mostly)

---
  • Loading branch information
erezrokah committed Jul 9, 2024
1 parent 8bd1301 commit c7a6179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serve/opentelemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func setupOtel(ctx context.Context, logger zerolog.Logger, p *plugin.Plugin, ote
metric.WithResource(pluginResource),
)
otel.SetErrorHandler(otel.ErrorHandlerFunc(func(err error) {
logger.Debug().Err(err).Msg("otel error")
logger.Warn().Err(err).Msg("otel error")
}))
otel.SetTracerProvider(tp)
otel.SetMeterProvider(mt)
Expand Down

1 comment on commit c7a6179

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⏱️ Benchmark results

  • Glob-8 ns/op: 91.77

Please sign in to comment.