mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-17 13:46:47 +02:00
This adds an extended metrics format to the metrics ingested by Unleash and sent by running SDKs in the wild. Notably, we don't store this information anywhere new in this PR, this is just streamed out to Victoria metrics - the point of this project is insight, not analysis. Two things to look out for in this PR: - I've chosen to take extend the registration event and also send that when we receive metrics. This means that the new data is received on startup and on heartbeat. This takes us in the direction of collapsing these two calls into one at a later point - I've wrapped the existing metrics events in some "type safety", it ain't much because we have 0 type safety on the event emitter so this also has some if checks that look funny in TS that actually check if the data shape is correct. Existing tests that check this are more or less preserved |
||
---|---|---|
.. | ||
spec | ||
util | ||
index.test.ts | ||
index.ts | ||
meta-schema-rules.test.ts | ||
validate.test.ts | ||
validate.ts |