Skip to content

Commit 0e2d512

Browse files
committed
feat(IMEX-45): added unauth telemetry call
1 parent b4860af commit 0e2d512

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

data.go

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package proton
22

33
import (
44
"context"
5+
56
"github.com/go-resty/resty/v2"
67
)
78

@@ -16,3 +17,10 @@ func (c *Client) SendDataEventMultiple(ctx context.Context, req SendStatsMultiRe
1617
return r.SetBody(req).Post("/data/v1/stats/multiple")
1718
})
1819
}
20+
21+
func (m *Manager) SendUnauthDataEvent(ctx context.Context, req SendStatsReq) error {
22+
if _, err := m.r(ctx).SetBody(req).Post("/data/v1/stats"); err != nil {
23+
return err
24+
}
25+
return nil
26+
}

0 commit comments

Comments
 (0)