mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-15 02:20:38 +09:00
fix: align telemetry client payload and dimensions with backend schema
Restructure the TelemetryClient to send the correct backend envelope
format ({app, schemaVersion, installId, events: [{name, occurredAt, dimensions}]})
instead of the old per-event format. Update all event dimension names
to match the backend registry (agent_role, adapter_type, error_code, etc.).
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
f16de6026d
commit
53dbcd185e
9 changed files with 49 additions and 48 deletions
|
|
@ -1832,7 +1832,7 @@ export function heartbeatService(db: Db) {
|
|||
|
||||
if (isFirstHeartbeat && updated) {
|
||||
const tc = getTelemetryClient();
|
||||
if (tc) trackAgentFirstHeartbeat(tc, { adapterType: updated.adapterType });
|
||||
if (tc) trackAgentFirstHeartbeat(tc, { agentRole: updated.adapterType });
|
||||
}
|
||||
|
||||
if (updated) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue