File tree Expand file tree Collapse file tree 5 files changed +9
-10
lines changed
testing/infra/k8s/base/stack
x-pack/apm-server/sampling/eventstorage Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,12 @@ type RunnerParams struct {
124
124
func NewRunner (args RunnerParams ) (* Runner , error ) {
125
125
fips140 .CheckFips ()
126
126
127
+ // the default tracer is leaking and its background
128
+ // goroutine is spamming requests to this apm server (default endpoint)
129
+ // If TLS is enabled it causes "http request sent to https endpoint".
130
+ // Close the default tracer since it's not used.
131
+ apm .DefaultTracer ().Close ()
132
+
127
133
var unpackedConfig struct {
128
134
APMServer * agentconfig.C `config:"apm-server"`
129
135
Output agentconfig.Namespace `config:"output"`
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ metadata:
4
4
name : apm-server
5
5
spec :
6
6
# TODO: replace with a pinned version such as 9.0.0-aaaaaaaa-SNAPSHOT
7
- version : 9.1.0-f894ad4a -SNAPSHOT
7
+ version : 9.1.0-2a2b7495 -SNAPSHOT
8
8
count : 1
9
9
http :
10
10
tls :
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ metadata:
4
4
name : elasticsearch
5
5
spec :
6
6
# TODO: replace with a pinned version such as 9.0.0-aaaaaaaa-SNAPSHOT
7
- version : 9.1.0-f894ad4a -SNAPSHOT
7
+ version : 9.1.0-2a2b7495 -SNAPSHOT
8
8
auth :
9
9
fileRealm :
10
10
- secretName : elasticsearch-admin
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ metadata:
4
4
name : kibana
5
5
spec :
6
6
# TODO: replace with a pinned version such as 9.0.0-aaaaaaaa-SNAPSHOT
7
- version : 9.1.0-f894ad4a -SNAPSHOT
7
+ version : 9.1.0-2a2b7495 -SNAPSHOT
8
8
count : 1
9
9
elasticsearchRef :
10
10
name : elasticsearch
Original file line number Diff line number Diff line change @@ -140,8 +140,6 @@ type StorageManager struct {
140
140
// meterProvider is the OTel meter provider
141
141
meterProvider metric.MeterProvider
142
142
storageMetrics storageMetrics
143
-
144
- metricRegistration metric.Registration
145
143
}
146
144
147
145
type storageMetrics struct {
@@ -335,11 +333,6 @@ func (sm *StorageManager) Close() error {
335
333
}
336
334
337
335
func (sm * StorageManager ) close () error {
338
- if sm .metricRegistration != nil {
339
- if err := sm .metricRegistration .Unregister (); err != nil {
340
- sm .logger .With (logp .Error (err )).Error ("failed to unregister metric" )
341
- }
342
- }
343
336
return errors .Join (
344
337
wrapNonNilErr ("event db flush error: %w" , sm .eventDB .Flush ()),
345
338
wrapNonNilErr ("decision db flush error: %w" , sm .decisionDB .Flush ()),
You can’t perform that action at this time.
0 commit comments