Skip to content

Commit 9ec993e

Browse files
authored
Merge pull request #124 from zasdaym/fix/configure-opentelemetry
fix: opentelemetry exit condition
2 parents b44433c + 006c92c commit 9ec993e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

uptrace/uptrace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func ConfigureOpentelemetry(opts ...Option) {
2727
ctx := context.TODO()
2828
cfg := newConfig(opts)
2929

30-
if !cfg.tracingEnabled && cfg.metricsEnabled {
30+
if !cfg.tracingEnabled && !cfg.metricsEnabled {
3131
return
3232
}
3333

0 commit comments

Comments
 (0)