WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 84f13fa

Browse files
committed
fix(bug): memory leak in tracing client
Signed-off-by: Cody Kaczynski <[email protected]>
1 parent 129dc75 commit 84f13fa

File tree

18 files changed

+26
-3
lines changed

18 files changed

+26
-3
lines changed

notify/discord/discord.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ func New(c *config.DiscordConfig, t *template.Template, l *slog.Logger, httpOpts
6464
if err != nil {
6565
return nil, err
6666
}
67+
notify.WrapWithTracing(client)
6768
n := &Notifier{
6869
conf: c,
6970
tmpl: t,

notify/incidentio/incidentio.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ func New(conf *config.IncidentioConfig, t *template.Template, l *slog.Logger, ht
7777
if err != nil {
7878
return nil, err
7979
}
80+
notify.WrapWithTracing(client)
8081

8182
return &Notifier{
8283
conf: conf,

notify/jira/jira.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func New(c *config.JiraConfig, t *template.Template, l *slog.Logger, httpOpts ..
5353
if err != nil {
5454
return nil, err
5555
}
56+
notify.WrapWithTracing(client)
5657

5758
return &Notifier{
5859
conf: c,

notify/mattermost/mattermost.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ func New(c *config.MattermostConfig, t *template.Template, l *slog.Logger, httpO
5454
if err != nil {
5555
return nil, err
5656
}
57+
notify.WrapWithTracing(client)
5758

5859
return &Notifier{
5960
conf: c,

notify/msteams/msteams.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func New(c *config.MSTeamsConfig, t *template.Template, l *slog.Logger, httpOpts
6565
if err != nil {
6666
return nil, err
6767
}
68+
notify.WrapWithTracing(client)
6869

6970
n := &Notifier{
7071
conf: c,

notify/msteamsv2/msteamsv2.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ func New(c *config.MSTeamsV2Config, t *template.Template, l *slog.Logger, httpOp
8989
if err != nil {
9090
return nil, err
9191
}
92+
notify.WrapWithTracing(client)
9293

9394
n := &Notifier{
9495
conf: c,

notify/opsgenie/opsgenie.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func New(c *config.OpsGenieConfig, t *template.Template, l *slog.Logger, httpOpt
5151
if err != nil {
5252
return nil, err
5353
}
54+
notify.WrapWithTracing(client)
5455
return &Notifier{
5556
conf: c,
5657
tmpl: t,

notify/pagerduty/pagerduty.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ func New(c *config.PagerdutyConfig, t *template.Template, l *slog.Logger, httpOp
5959
if err != nil {
6060
return nil, err
6161
}
62+
notify.WrapWithTracing(client)
6263
n := &Notifier{conf: c, tmpl: t, logger: l, client: client}
6364
if c.ServiceKey != "" || c.ServiceKeyFile != "" {
6465
n.apiV1 = "https://events.pagerduty.com/generic/2010-04-15/create_event.json"

notify/pushover/pushover.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ func New(c *config.PushoverConfig, t *template.Template, l *slog.Logger, httpOpt
5656
if err != nil {
5757
return nil, err
5858
}
59+
notify.WrapWithTracing(client)
5960
return &Notifier{
6061
conf: c,
6162
tmpl: t,

notify/rocketchat/rocketchat.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ func New(c *config.RocketchatConfig, t *template.Template, l *slog.Logger, httpO
9292
if err != nil {
9393
return nil, err
9494
}
95+
notify.WrapWithTracing(client)
9596
token, err := getToken(c)
9697
if err != nil {
9798
return nil, err

0 commit comments

Comments
 (0)