Skip to content

Commit c7ba585

Browse files
committed
Add telemetry data for usage of deployment web instances/memory/disk/log_rate
1 parent 7c22bc9 commit c7ba585

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

app/actions/deployment_create.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,11 @@ def log_rollback_event(app_guid, user_id, revision_id, strategy, max_in_flight,
281281
{
282282
'strategy' => strategy,
283283
'max-in-flight' => max_in_flight,
284-
'canary-steps' => canary_steps
284+
'canary-steps' => canary_steps,
285+
'instances' => deployment.web_instances,
286+
'memory' => deployment.memory_in_mb,
287+
'disk' => deployment.disk_in_mb,
288+
'log-rate' => deployment.log_rate_limit_in_bytes_per_second
285289
}
286290
)
287291
end

app/controllers/v3/deployments_controller.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ def create
6161
{
6262
'strategy' => deployment.strategy,
6363
'max-in-flight' => deployment.max_in_flight,
64-
'canary-steps' => deployment.canary_steps
64+
'canary-steps' => deployment.canary_steps,
65+
'instances' => deployment.web_instances,
66+
'memory' => deployment.memory_in_mb,
67+
'disk' => deployment.disk_in_mb,
68+
'log-rate' => deployment.log_rate_limit_in_bytes_per_second
6569
}
6670
)
6771
rescue DeploymentCreate::Error => e

0 commit comments

Comments
 (0)