Skip to content

Commit f7ac861

Browse files
committed
fix: rename the payload parameter in telemetry requests because the current request body contains other field names (#299)
1 parent 13716b7 commit f7ac861

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/database-lab/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func main() {
191191

192192
shutdownDatabaseLabEngine(shutdownCtx, dockerCLI, engProps, pm.First().Pool())
193193
cloningSvc.SaveClonesState()
194-
tm.SendEvent(ctx, telemetry.EngineStoppedEvent, telemetry.EngineStopped{Uptime: server.Uptime()})
194+
tm.SendEvent(context.Background(), telemetry.EngineStoppedEvent, telemetry.EngineStopped{Uptime: server.Uptime()})
195195
}
196196

197197
func getEngineProperties(ctx context.Context, dockerCLI *client.Client, cfg *config.Config) (global.EngineProps, error) {

pkg/client/platform/telemetry.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
type TelemetryEvent struct {
1717
InstanceID string `json:"instance_id"`
1818
EventType string `json:"event_type"`
19-
Payload interface{} `json:"payload"`
19+
Payload interface{} `json:"event_data"`
2020
}
2121

2222
// SendTelemetryEvent makes an HTTP request to send a telemetry event to the Platform.

0 commit comments

Comments
 (0)