Skip to content

Commit c85d029

Browse files
authored
fix: stop the tracer after each invocation. Disable telemetry (#207)
1 parent 2448e5c commit c85d029

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

internal/metrics/listener.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func MakeListener(config Config, extensionManager *extension.ExtensionManager) L
9797
// Agent instead of using this "discovery" implementation.
9898
if extensionManager.IsExtensionRunning() {
9999
var err error
100-
if statsdClient, err = statsd.New("127.0.0.1:8125"); err != nil {
100+
if statsdClient, err = statsd.New("127.0.0.1:8125", statsd.WithoutTelemetry()); err != nil {
101101
statsdClient = nil // force nil if an error occurred during statsd client init
102102
}
103103
}

internal/trace/listener.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ func (l *Listener) HandlerFinished(ctx context.Context, err error) {
125125
}
126126
}
127127

128+
tracer.Stop()
128129
tracer.Flush()
129130
}
130131

0 commit comments

Comments
 (0)