fxa/packages/fxa-shared/log
dschom 12ea05171e
Cherry pick squash for experimental dot releases v1.226.5 to v1.226.9 on train-226. These changes address issues with connection pool spiking and high latency on the attached clients route.
----
From Squash:

task(shared): Add logging to connection pools

Becuase:
- We want to investigate a connection pooling issue

This commit:
- Binds to connection pool events
- Introduces loggers and logs messages to spots of interest
- Adds stats where available
- Fixes broken fluent localizer test. (German string updated...)

Release 1.226.5

Fix typescript build error

Release 1.226.6

fix(auth): Startup issue

Because:
- Imports are not valid in these files

Commit:
- Switches to require

Release 1.226.7

task(auth,shared): Logging improvements after observing last canary deployment's logs.

Because:
- We need more visibility into how redis is starting up.

This Commit:
- Add more logging around Redis during initialization.
- Removes random doubly awaited database calls.
- Doctored up some log messages to make them easier to query for.
- Fixes bad log statement in fxa-auth-server/lib/oauth/db/mysql/index.js

Release 1.226.8

bug(auth,admin): Redis config potentially missing

Because:
- We are seeing high latency on the train-226 canary.

This commit:
- Makes sure accessTokens redis client is always enabled
- Makes sure the base sessionTokenConfig is applied on top of the default redis config.
- Adds even more logging with some stack traces to see where redis, mysql, and knex, instances are being created from.
- Fixes maxttl setting on the access tokens
- Adds statsd metrics to redis
- Fixes metrics prefix on admin panel
- Fixes mysql enqueue metric

Release 1.226.9

Fix client formater. Turns out call to localizeTimestamp, is very expensive... who knew.

Remove logs used for debugging connection pool issue
2022-03-18 10:33:35 -07:00
..
index.ts Cherry pick squash for experimental dot releases v1.226.5 to v1.226.9 on train-226. These changes address issues with connection pool spiking and high latency on the attached clients route. 2022-03-18 10:33:35 -07:00