Skip to content

Commit

Permalink
feat(IMEX-45): added unauth telemetry call
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectroNafta committed Oct 25, 2024
1 parent b4860af commit 0e2d512
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions data.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package proton

import (
"context"

"github.com/go-resty/resty/v2"
)

Expand All @@ -16,3 +17,10 @@ func (c *Client) SendDataEventMultiple(ctx context.Context, req SendStatsMultiRe
return r.SetBody(req).Post("/data/v1/stats/multiple")
})
}

func (m *Manager) SendUnauthDataEvent(ctx context.Context, req SendStatsReq) error {
if _, err := m.r(ctx).SetBody(req).Post("/data/v1/stats"); err != nil {
return err
}
return nil
}

0 comments on commit 0e2d512

Please sign in to comment.