Skip to content

Commit

Permalink
feat(telemetry) add Kong router flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
rainest committed Sep 29, 2023
1 parent 658b43d commit a193efa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/manager/telemetry/reports.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,17 @@ func SetupAnonymousReports(
if !ok {
return nil, fmt.Errorf("malformed database configuration found in Kong client root")
}
routerFlavor, ok := cfg["router_flavor"].(string)
if !ok {
// version to old to use router flavor, de facto traditional
routerFlavor = "traditional"
}

fixedPayload := Payload{
"v": metadata.Release,
"kv": kongVersion,
"db": kongDB,
"r": routerFlavor,
"id": instanceIDProvider.GetID(), // universal unique identifier for this system
}

Expand Down

0 comments on commit a193efa

Please sign in to comment.