Commit graph

60 commits

Author SHA1 Message Date
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
Denis Badurina
8287a51255
prettier should be responsible for import sorting instead of eslint (#1027) 2023-01-23 10:30:38 +01:00
Dimitri POSTOLOV
a9ae5500e3
replace all Boolean(...) with !!... with new guild eslint config (#973) 2023-01-10 12:38:46 +01:00
Dimitri POSTOLOV
02469da474
[🔧 ESLint] fixes for no-implicit-coercion (#742)
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-12-28 21:04:17 +01:00
Dimitri POSTOLOV
7ad5e26c34
[🔧 ESLint] import sort (#736) 2022-12-28 20:22:54 +01:00
Dimitri POSTOLOV
01124cd5a3
[🔧 ESLint] fixes for unicorn/numeric-separators-style rule (#735) 2022-12-08 08:18:48 +01:00
Kamil Kisiela
49380ff695
tRPC v10 (#706) 2022-11-29 18:47:13 +01:00
Dimitri POSTOLOV
6be629baf7
enable @typescript-eslint/no-floating-promises for all files (#634)
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-11-28 12:41:11 +00:00
Kamil Kisiela
f9cd63724c
Introduce tokens_http_requests and usage_tokens_duration_seconds metrics (#684) 2022-11-25 08:40:38 +00:00
renovate[bot]
1afe0ec73a
Update dependency @theguild/prettier-config to v1 (#676)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-11-24 10:00:41 +00:00
Ryan Perry-Nguyen
e288d323cc
Support log level and request logs (#612)
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-11-22 11:52:26 +01:00
Kamil Kisiela
c3573812da
Add orgId label to usage_rate_limit_dropped metric (#566) 2022-10-31 10:37:11 +01:00
Kamil Kisiela
e8287d2abc
Ensure no parsing errors in usage reports (#496)
* Ensure no parsing errors in usage reports
* Report back the number of accepted and rejected operations
2022-10-17 12:49:30 +00:00
Saihajpreet Singh
642daaf494
Use Envelop v3 and GraphQL Yoga v3 (#443)
Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-10-06 13:48:01 +02:00
Kamil Kisiela
97cf8a672e
Use Histogram instead of Summary for durations (#455) 2022-10-05 14:09:56 +02:00
Kamil Kisiela
b9d8e2ceac
Fix the new env vars setup (#450)
* Use 5432 as default port of pg

* Fix ssl

* fix: only set heartbeat env variable if heartbeat is enabled (#446)

* fix: only set heartbeat env variable if heartbeat is enabled

* fix: default port

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>

* POSTGRES_SSL everywhere

* oh come on

* Fix Kafka connection

* Fix DOCS_URL

* Fix docs url

* But I can feel your heartbeat

I can feel your heartbeat (he said to me)

'I can feel your heartbeat' (running through me)

Feel your heartbeat

She said, 'I can feel your heartbeat' (she said to me)

'I can feel your heartbeat' (she said to me)

'I can feel your heartbeat' (running through me)

Your heartbeat, feel your heartbeat

* Your heartbeat, your heartbeat

Co-authored-by: Laurin Quast <laurinquast@googlemail.com>
2022-10-05 11:48:05 +02:00
Laurin Quast
7990f9f03f
feat: treat empty string environment variable as undefined (#449) 2022-10-05 09:22:20 +02:00
Laurin Quast
7656b7957d
feat: clean app env (#422)
* feat: document environment variables

* more env documentation

* wip

* add noop for backend env

* typo

* feat: embed environment validation/parsing in built app

* fix the sentry integration 😌

* feat: use env

* feat: decode the usage service environment

* feat: decode the webhooks service environment

* feat: disallow process.env

* feat: decode the tokens service environment

* feat: decode the stripe-billing service environment

* feat: decode server service environment

* feat: decode schema service environment

* feat: decode rate-limit service environment

* feat: decode usage-estimator service environment

* feat: decode emails service environment

* adjust env

* remove commented out code

* adjust env variable name

* use separate env variables

* env fixes

* more environmental stuff :)

* ...

* replace POSTGRES_CONNECTION_STRING with specific environment variables

* handle optional clickhouse (for now :)

* add missing POSTGRES_DB environment variable

* make ENVIRONMENT optional

* the other matters lol

* feat: support delivering mails via SMTP (#412)

* feat: optional CDN (#410)

* feat: optional CDN

* enable CDN in deployment

* enable the CDN in integration tests

* add sendmail provider

* remove unused env variables from the deployment

* only show login alert when legacy auth0 migration is enabled

* feat: make TOKENS_ENDPOINT mandatory and RATE_LIMIT_ENDPOINT optional for usage service

* feat: upgrade supertokens and enable server side email confirmation (#423)

* feat: upgrade supertokens and enable server side email confirmation

* feat: opt into required email verification

* docs: self hosting (#428)

* docs: self-hosting quick start

* Update packages/web/docs/pages/self-hosting/get-started.mdx

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>

* feat: optional GitHub and Slack environment variables (#440)

* feat: optional github integration environment variables

* feat: optional slack integration (#441)

* use latest stable supertokens

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-10-04 14:30:21 +02:00
Teresa
df61539648
convert kafka topic & consumer group as ENV variables (#390) 2022-09-26 14:21:40 +02:00
Kamil Kisiela
53fc9418fd
Sentry on staging (#338) 2022-09-06 18:05:39 +02:00
Kamil Kisiela
7dd5d67334
Bump connection and authentication timeouts in Kafka (#332)
* Bump kafkajs
2022-09-02 10:02:36 +02:00
Kamil Kisiela
ccabff3284
Do not log collected or processed reports (#273) 2022-08-09 10:58:50 +02:00