Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinfuchs committed Apr 22, 2024
1 parent 7d86a19 commit 8a57dd0
Show file tree
Hide file tree
Showing 17 changed files with 42 additions and 40 deletions.
8 changes: 4 additions & 4 deletions kite-docs/static/img/undraw_docusaurus_mountain.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 8 additions & 5 deletions kite-service/pkg/engine/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ import (
)

type Deployment struct {
ID string
wasm []byte
manifest manifest.Manifest
config DeploymentConfig
env module.HostEnvironment
ID string
wasm []byte
manifest manifest.Manifest
config DeploymentConfig
env module.HostEnvironment
eventHandled bool

pluginPool *pool.ObjectPool
}
Expand Down Expand Up @@ -118,7 +119,9 @@ func (d *Deployment) HandleEvent(ctx context.Context, event *event.Event) error

fmt.Println("Execution duration: ", res.ExecutionDuration)

// TODO: track cold starts and warm starts based on if this is the first time the deployment is being used
d.env.TrackEventHandled(ctx, string(event.Type), err == nil, res.TotalDuration, res.ExecutionDuration)
d.eventHandled = true

if err != nil {
slog.With(logattr.Error(err)).Error("failed to handle event")
Expand Down
2 changes: 1 addition & 1 deletion kite-web/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
"components": "@/components",
"utils": "@/lib/utils"
}
}
}
2 changes: 1 addition & 1 deletion kite-web/public/illustrations/analytics.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8a57dd0

Please sign in to comment.