Commit graph

33 commits

Author SHA1 Message Date
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
Kamil Kisiela
ab9ae413b7
Log more details in the usage service (#244)
* Log more details in the usage service
2022-07-18 11:09:33 +02:00
Kamil Kisiela
605f52319a
Enable sampling for selected operations in Sentry (#224)
Instead of TEST_FILTER use the same logic as when running jest fileOrPattern
2022-07-05 17:29:39 +02:00
Kamil Kisiela
25d6b0191b
Migrate X-API-Token to Authorization header (#122) 2022-07-01 11:43:27 +02:00
Kamil Kisiela
302169a38e
Validate the timestamp in Usage reports (#169) 2022-06-23 18:37:44 +02:00
Dimitri POSTOLOV
bd3100d2a6
enable and fixes errors for @typescript-eslint/no-floating-promises rule (#150)
* enable rule and update eslint deps

* add return types

* fixes

* fix storage migration

* fix typecheck

* fix integrations tests

* fix last issues

* Update packages/libraries/client/src/client.ts

Co-authored-by: Laurin Quast <laurinquast@googlemail.com>

Co-authored-by: Laurin Quast <laurinquast@googlemail.com>
2022-06-23 12:04:10 +02:00
Dotan Simha
42e5273542
Refactor rate-limit to support multi-targets orgs (#126) 2022-05-29 14:43:07 +03:00
Kamil Kisiela
a7152bd6f5
Add service_readiness metrics (#105)
* Add service_readiness metrics

* Format
2022-05-26 11:02:10 +02:00
Dimitri POSTOLOV
a91e013840
apply no-else-return fixes (#74) 2022-05-24 16:14:28 -04:00
Kamil Kisiela
20e3129caa
$ prettier <all> (#46)
Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
2022-05-24 16:31:53 +03:00
Kamil Kisiela
dc3bc1ec87 Hello 2022-05-18 09:26:57 +02:00