Daniel García Aubert
b115bca07e
Be able to tag requests with labels as easier way to provide business metrics
2020-06-08 16:29:22 +02:00
Daniel García Aubert
adeffd2018
Centralize common headers, this will help up to move biz metrics out of the process
2020-06-04 17:45:15 +02:00
Daniel García Aubert
7b53b7c30a
Stop using profiling wrongly. Now it only saves custom events from backends (tile, map, attributes, etc..) and calculates the response time. Besides, removed tags to know whether overviews are being used.
2020-06-03 19:51:56 +02:00
Daniel García Aubert
210f5b01ec
Make sure all errors use the serializer set for the logger
2020-06-03 17:32:16 +02:00
Daniel García Aubert
62d66f2dbc
Do not use global logger in middlewares, use the one initialized in res.locals instead
2020-06-02 09:00:45 +02:00
Daniel García Aubert
163c546236
Replace log4js by pino as logger:
...
- Logs to stdout, disabled while testing
- Change log calls signature when needed
- Use development version of camshaft
- Removes unused log cofiguration
- Bind request id to log req/res
- Log req at the begining of the cycle and res at the end
2020-06-01 19:18:15 +02:00
Daniel García Aubert
6bcf477532
Avoid custom headers to be undefined
2020-05-29 16:06:16 +02:00
Daniel García Aubert
ddefb1a6ca
Add 'Carto-Stat-Tag', 'Carto-User-Id', and 'Carto-Client' headers
2020-05-26 13:15:35 +02:00
Daniel García Aubert
70f0b6ea50
Avoid to use "pubsub" for the name of modules, middlewares, variables, etc..
2020-04-29 10:40:45 +02:00
Daniel García Aubert
c88a14bf43
Send metrics for map instantiations (named, anonymous and static) with the new format.
2020-04-28 19:17:00 +02:00
Daniel García Aubert
d4719d5707
camel case
2019-11-14 12:17:26 +01:00
Daniel García Aubert
4d70ac0894
Apply automatic eslint fixes
2019-10-21 19:07:24 +02:00
Daniel García Aubert
281a079a62
Simplify folder structure
2019-10-07 09:40:50 +02:00