Skip to content

Commit

Permalink
Just embed the state
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps committed Apr 6, 2022
1 parent 9b93967 commit 48a9965
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions internal/telemetry/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ const (
)

type ping struct {
Version string `json:"version"`
UUID string `json:"uuid"`
Flipt flipt `json:"flipt"`
state
Flipt flipt `json:"flipt"`
}

type flipt struct {
Expand Down Expand Up @@ -103,8 +102,7 @@ func (r *Reporter) report(_ context.Context, info info.Flipt, f file) error {
var (
props = analytics.NewProperties()
p = ping{
Version: s.Version,
UUID: s.UUID,
state: s,
Flipt: flipt{
Version: info.Version,
},
Expand Down

0 comments on commit 48a9965

Please sign in to comment.