darklang / classic-dark

Darklang stable version - currently on darklang.com/classic
https://darklang.com/classic
Other
49 stars 10 forks source link

Reduce trace costs #16

Open pbiggar opened 1 year ago

pbiggar commented 1 year ago

Our OpenTelemetry provider is putting their prices up, so we should reduce how much we use.

Currently, we're using about 1.2B events and the next lowest threshold is 450M.

They are currently split:

cloudsql-proxy 0.11% kubernetes-bwd-nginx 0.15% kubernetes-bwd-ocaml 57.03% (1.13B) kubernetes-garbagecollector 38.02% (376M) kubernetes-metrics 4.69% (45M)

Among kubernetes-bwd-ocaml, they are split:

BwdServer | 608,015,209 QueueWorker | 354,919,048 ApiServer | 66,742,393 CronChecker | 38,742,278 other  | 5,528,954

Note the numbers don't add up because we had a big month for BwdServer due to an anomaly.

To address this:

Overall, this should reduce us from 1.8B in march to: BwdServer: 121M QueueWorker: 71M ApiServer: 67M CronChecker: 39M kubernetes-bwd-ocaml other: 6M garbagecollector: 18M

Overall around 350M

pbiggar commented 1 year ago

Confirmed this is in production and works. Just final confirmation needed that this does in fact lower telemetry usage.