1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-17 13:46:47 +02:00
unleash.unleash/src/lib/openapi
Simon Hornby 30073d527a
feat: extended SDK metrics (#7527)
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
2024-07-04 08:51:27 +02:00
..
spec feat: extended SDK metrics (#7527) 2024-07-04 08:51:27 +02:00
util fix: import export pointing to new docs (#7274) 2024-06-04 23:00:53 +02:00
index.test.ts feat: biome lint (#4853) 2023-09-29 14:18:21 +02:00
index.ts chore: bearer token middleware (#6624) 2024-04-02 10:21:38 +01:00
meta-schema-rules.test.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
validate.test.ts
validate.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00