mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
1edd73db45
As part of more telemetry on the usage of Unleash. This PR adds a new `stat_` prefixed table as well as a trigger on the events table trigger on each insert to increment a counter per environment per day. The trigger will trigger on every insert into the events base, but will filter and only increment the counter for events that actually have the environment set. (there are events, like user-created, that does not relate to a specific environment). Bit wary on this, but since we truncate down to row per (day, environment) combo, finding conflict and incrementing shouldn't take too long here. @ivarconr was it something like this you were considering? |
||
---|---|---|
.. | ||
client-metrics | ||
access-service.test.ts | ||
access-service.ts | ||
account-service.ts | ||
addon-schema.ts | ||
addon-service-test-simple-addon.ts | ||
addon-service.test.ts | ||
addon-service.ts | ||
api-token-service.test.ts | ||
api-token-service.ts | ||
client-spec-service.test.ts | ||
client-spec-service.ts | ||
context-schema.ts | ||
context-service.ts | ||
edge-service.ts | ||
email-service.test.ts | ||
email-service.ts | ||
environment-service.ts | ||
event-announcer-service.ts | ||
event-service.ts | ||
favorites-service.ts | ||
feature-service-potentially-stale.test.ts | ||
feature-tag-service.ts | ||
feature-toggle-service.ts | ||
feature-type-service.ts | ||
group-service.ts | ||
health-service.ts | ||
index.ts | ||
maintenance-service.test.ts | ||
maintenance-service.ts | ||
openapi-service.ts | ||
pat-service.ts | ||
project-health-service.ts | ||
project-schema.ts | ||
project-service.ts | ||
proxy-service.ts | ||
public-signup-token-service.ts | ||
reset-token-service.ts | ||
scheduler-service.test.ts | ||
scheduler-service.ts | ||
segment-schema.ts | ||
segment-service.ts | ||
session-service.ts | ||
setting-service.ts | ||
state-schema.ts | ||
state-service-export-v1.json | ||
state-service.test.ts | ||
state-service.ts | ||
state-util.ts | ||
strategy-schema.ts | ||
strategy-service.ts | ||
tag-schema.test.ts | ||
tag-schema.ts | ||
tag-service.ts | ||
tag-type-schema.test.ts | ||
tag-type-schema.ts | ||
tag-type-service.ts | ||
user-feedback-service.ts | ||
user-service.test.ts | ||
user-service.ts | ||
user-splash-service.ts | ||
version-service.test.ts | ||
version-service.ts |