Commit graph

81 commits

Author SHA1 Message Date
Valentin Cocaud
c728a995e2
feat(server): add hive tracing integration (#7410)
Co-authored-by: Laurin Quast <laurinquast@googlemail.com>
2025-12-18 16:01:48 +01:00
jdolle
132feb93e8
Reduce usage service readiness threshold (#6759) 2025-05-01 14:44:48 -07:00
jdolle
60981bd944
Reduce usage producer retry counts; fix usage producer fallback logic (#6755) 2025-04-28 17:23:23 +02:00
Laurin Quast
8c3413a207
feat(usage): report with organization access tokens (#6538)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-03-06 09:19:37 +08:00
Kamil Kisiela
f60ae6e83e
Replaces rate-limit, stripe-billing and usage-estimator with commerce (#6540) 2025-02-24 10:41:01 +00:00
Kamil Kisiela
2507a9b9e0
In-memory fallback queue and no manual reconnecting of Kafka in Usage service (#6531) 2025-02-18 14:24:06 +00:00
Laurin Quast
4d3d6fcdc2
fix: improve errors for usage processor 2 format (#6472) 2025-02-05 13:04:35 +01:00
Piotr Monwid-Olechnowicz
3e76e87dd3
Disable no-process-env rule in docs and environment.ts files (#6445) 2025-01-29 22:15:46 +01:00
Kamil Kisiela
a902d8bb97
Reject usage reports with incorrect duration and errorsTotal values (#6433) 2025-01-29 17:22:59 +02:00
Dotan Simha
e75085b81c
Improvements to OTEL traces in usage (#6382) 2025-01-26 09:57:13 +02:00
Kamil Kisiela
393ece7eab
Adjust Kafka message estimator on MESSAGE_TOO_LARGE (#6374) 2025-01-22 14:44:55 +00:00
Dotan Simha
ba207485ad
feat: open telemetry tracing for usage service (#6351) 2025-01-17 10:40:18 +01:00
Kamil Kisiela
d606ca8065
More precise buckets and dashboard for http duration (#6366) 2025-01-16 11:29:02 +01:00
Kamil Kisiela
fba35b4064
Measure duration of the POST /usage request and time of execution of the handler (#6363) 2025-01-15 14:19:30 +01:00
Kamil Kisiela
f5ed6b0d6b
Move from tiny-lru to lru-cache in the usage service (#6362) 2025-01-15 14:16:55 +01:00
Kamil Kisiela
63cdff05a6
Measure latency of RPC to rate-limit service and duration of report parsing (#6353) 2025-01-14 15:22:45 +01:00
Kamil Kisiela
90932dab0a
Improve logging around tokens and fix initial read (#6149) 2024-12-21 19:35:11 +00:00
Kamil Kisiela
6d78547a0f
Make optional properties optional or nullable in usage report v2 (#6121) 2024-12-13 15:24:21 +01:00
Kamil Kisiela
0d7ce02082
Use structured logging and log validation errors in usage service (#6115) 2024-12-13 11:11:24 +01:00
Saihajpreet Singh
c926afc7db
improve usage service error logs (#6114) 2024-12-13 09:20:42 +01:00
Tuval Simha
20aa818b87
Fix maskToken function (#6053)
Co-authored-by: Laurin Quast <laurinquast@googlemail.com>
2024-11-29 09:17:15 +00:00
Laurin Quast
5ad52ba4d1
fix: log formatting in usage reporting service (#5924) 2024-11-13 17:17:20 +01:00
Laurin Quast
bd90a812d2
fix: validate operation body (#5537) 2024-08-28 10:06:49 +02:00
Kamil Kisiela
543b67d424
Gracefully catch http requests to rate-limit service in /usage (#5506) 2024-08-25 13:55:36 +03:00
Laurin Quast
e560a23dd9
feat: adjust persisted document id format for specification (#5318) 2024-08-13 12:13:51 +02:00
Laurin Quast
75ad8dfa9d
feat: app deployments (persisted operations/documents) (#4746) 2024-07-19 11:13:51 +02:00
Kamil Kisiela
b88c9faf6e
fix: keep organization id when splitting the report (#5063) 2024-06-25 07:41:32 +00:00
Kamil Kisiela
8b1d8c6e38
Capture a logic path that leads to default TTL (#4906) 2024-06-03 08:33:14 +00:00
Kamil Kisiela
696b630e6a
Ensure correct data retention propagation (#4828)
Co-authored-by: Dotan Simha <dotansimha@gmail.com>
2024-05-28 14:07:48 +02:00
Dotan Simha
e23fbd93eb
Rate-limit hot fix to prevenet data loss (#4820) 2024-05-27 10:51:03 +02:00
Dotan Simha
86cbe95bd2
distributed tracing (#4219) 2024-04-07 11:57:03 +03:00
Kamil Kisiela
e4fd8e8b71
Store monthly usage per organisation (#4366) 2024-04-05 12:51:54 +02:00
Laurin Quast
df0ea91920
feat: client subscription usage reporting and ingestion (#4176) 2024-03-25 13:08:58 +01:00
Heb
bb0ff238ee
chore: use node import specifier for crypto (#4328) 2024-03-25 12:21:00 +01:00
Dotan Simha
0a27436166
Use native fetch in CDN workers, refactor deprecated TS types, fixed integration tests fetch (#4112) 2024-02-29 11:31:44 +02:00
Dotan Simha
b186496961
replace whatwg-node/fetch with native fetch (#4110) 2024-02-28 20:27:22 +02:00
Dotan Simha
baff4c6257
upgrade fastify to v4 and clean up for deprecations/api usage (#4014) 2024-02-25 17:15:03 +02:00
Dotan Simha
1628451cb6
sentry fixes (#4011) 2024-02-20 16:34:53 +00:00
Yannick Rödl
9866850e3f
fix: prometheus port documentation and expose (#3710) 2024-02-01 12:53:21 +00:00
Kamil Kisiela
7a1e1506f0
Revert Node 21 upgrade and use Node 18 again (#3546) 2023-12-11 17:04:44 +02:00
Kamil Kisiela
5aaed27afb
Use whatwg-node/fetch for tRPC calls (#3554) 2023-12-11 12:33:22 +02:00
Kamil Kisiela
9c3e7b3b16
Node 21 (#3035) 2023-12-07 11:29:29 +01:00
renovate[bot]
fdc0fb3c8d
chore(deps): update dependency prettier to v3.1.0 (#3377)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>
2023-11-13 11:07:34 +00:00
Kamil Kisiela
c4c5879e94
Retry requests to /usage when it is not ready (#2792) 2023-09-04 09:41:06 +02:00
Dotan Simha
80bbed53de
Ensure validity of operation reports (#2780) 2023-08-28 09:13:56 +02:00
Kamil Kisiela
c0672ff416
add optional ssl options for kafka client (#2757) (#2758)
Co-authored-by: Saurav Tapader <stapader@expediagroup.com>
2023-08-22 14:38:47 +00:00
Kamil Kisiela
0c7aaf8891
Check length of token in usage service (#2643) 2023-07-21 06:34:52 +00:00
Kamil Kisiela
7df9b23dcf
Set readiness of usage service based on errors returned by Kafka (#2426) 2023-06-13 16:40:51 +02:00
Dotan Simha
78d8987229
Fixes for local development of Hive, and make it IPv6 friendly (#1317) 2023-02-09 15:38:50 +09:00
Kamil Kisiela
8c8eb18fd9
Make request logging optional (#1118) 2023-01-24 17:04:13 +01:00