1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-09 11:14:29 +02:00
unleash.unleash/src/lib/features/metrics/instance
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
..
findOutdatedSdks.test.ts fix: outdated sdk version handles non semver versions (#6586) 2024-03-15 14:58:53 +01:00
findOutdatedSdks.ts refactor: make outdated sdk finding simpler (#6587) 2024-03-15 15:38:57 +01:00
instance-service.test.ts feat: private projects in application overview (#6775) 2024-04-04 14:56:21 +02:00
instance-service.ts feat: extended SDK metrics (#7527) 2024-07-04 08:51:27 +02:00
metrics.test.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
metrics.ts feat: now CLIENT_METRICS event will be emitted with new structure (#7210) 2024-05-31 12:40:46 +03:00
models.ts feat: start extracting project from session object (#6856) 2024-04-16 15:47:45 +03:00
register.test.ts chore: Bump biome and configure husky (#6589) 2024-03-18 13:58:05 +01:00
register.ts feat: start extracting project from session object (#6856) 2024-04-16 15:47:45 +03:00