Skip to content

Commit 4d6e496

Browse files
committed
Merge branch '299-telemetry-requests' into 'master'
fix: rename the payload parameter in telemetry requests because the current request body contains other field names (#299) Closes #299 See merge request postgres-ai/database-lab!379
2 parents 1aed383 + f7ac861 commit 4d6e496

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
@@ -192,7 +192,7 @@ func main() {
192192

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

198198
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)