Álvaro
5c491a25cf
Use env vars and fix tests
4 years ago
Jorge Tarrero
e039204638
Fix linter
4 years ago
Jorge Tarrero
dc1becd15c
Fix logger error serializer when the exception stack is not set
4 years ago
Daniel García Aubert
28f70f6877
Logger: rename key 'msg' => 'event_message'
4 years ago
Daniel García Aubert
b646f71394
Don't miss the header
4 years ago
Daniel García Aubert
a749d4fb43
Typo
4 years ago
Daniel García Aubert
b9198b59a1
Logger: rename 'error' => 'exception' to avoid name clashing in E/S
4 years ago
Daniel García Aubert
b60a69e7d2
Logger: rename level => levelname to avoid name collision
4 years ago
Daniel García Aubert
3937b8c271
Adapt JSON output to the standard structure
4 years ago
Daniel García Aubert
b32a073ac3
Metro: stop aggregating log per request id, use new config.json file
4 years ago
Daniel García Aubert
74116523b4
Merge branch 'master' into dgaubert/ch78384/maps-api-replace-log4js-logger-by-pino
4 years ago
Daniel García Aubert
6cddec562a
Profiler don't log times if there is no one task done at least
4 years ago
Daniel García Aubert
578f543c01
log user
4 years ago
Daniel García Aubert
f6c8796c8a
Do not duplicate timer
4 years ago
Daniel García Aubert
e49ecda321
Don't create a new metric for each request, use the same label to send to statsd
4 years ago
Daniel García Aubert
9c21194c68
Set cache buster equal to 0 when there is no affected tables in the mapconfig
4 years ago
Daniel García Aubert
a5c83edef6
Introducing @carto/metro, the carto logs and metrics transport.
4 years ago
Daniel García Aubert
b115bca07e
Be able to tag requests with labels as easier way to provide business metrics
4 years ago
Daniel García Aubert
02c8e28494
Finalize request's log
4 years ago
Daniel García Aubert
d28744a5e3
Be able to pass the logger to the analysis creation (camshaft) while instantiating a named map with analysis
4 years ago
Daniel García Aubert
6f9f53dd03
Be able to reduce the footprint in the final log file depending on the environment
4 years ago
Daniel García Aubert
63bc8f75b9
Typo
4 years ago
Daniel García Aubert
adeffd2018
Centralize common headers, this will help up to move biz metrics out of the process
4 years ago
Daniel García Aubert
6945cfc93c
Add TODO
4 years ago
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.
4 years ago
Daniel García Aubert
210f5b01ec
Make sure all errors use the serializer set for the logger
4 years ago
Daniel García Aubert
1dda183a31
typo
4 years ago
Daniel García Aubert
0eadfe6ee9
Simpligy error middleware
4 years ago
Daniel García Aubert
c37e3f173d
Handle error properly in user middleware, it will logged in error middleware
4 years ago
Daniel García Aubert
107a97aa9e
Honor @oleurud's comment
4 years ago
Daniel García Aubert
219d2c9044
Shortcuts for serializers
4 years ago
Daniel García Aubert
1e89821d97
Use standard serializers for error, request, and response
4 years ago
Daniel García Aubert
29c6505252
Do not set header 'x-tiler-profiler' and log it instead
4 years ago
Daniel García Aubert
7d8d05b865
Log errors and do not send 'X-Tiler-Errors' header
4 years ago
Daniel García Aubert
afeb91dc86
Bring back logger for windshaft
4 years ago
Daniel García Aubert
b7b3392bdd
Be able to set log level from env variable LOG_LEVEL
4 years ago
Daniel García Aubert
b60116410a
Use req/res logger instead of the one bound to global object
4 years ago
Daniel García Aubert
48c28aea0b
Do not bind logger to global object, now it's a part of serverOptions
4 years ago
Daniel García Aubert
62d66f2dbc
Do not use global logger in middlewares, use the one initialized in res.locals instead
4 years ago
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
4 years ago
Daniel García Aubert
6bcf477532
Avoid custom headers to be undefined
4 years ago
Daniel García Aubert
f82232194c
Under if
4 years ago
Daniel García Aubert
aff5c9a614
Add test to check the headers exist while instantiating a map
4 years ago
Daniel García Aubert
ddefb1a6ca
Add 'Carto-Stat-Tag', 'Carto-User-Id', and 'Carto-Client' headers
4 years ago
Daniel García Aubert
8cc24bc665
- Drop support for Node.js < 12
...
- Support Node.js 12
- Upgrade `windshaft` to version `7.0.0`
- Upgrade `camshaft` to version `0.65.3`
- Upgrade `cartodb-redis` to version `3.0.0`
4 years ago
Daniel García Aubert
4dfc898587
Don't log when metrics where sent successfully
4 years ago
Daniel García Aubert
3cf17c8bab
typo
4 years ago
Daniel García Aubert
8c38ecf808
Missing substring
4 years ago
Daniel García Aubert
a196a26ab4
Get templateHash for static tile request and errored named map instantiations
4 years ago
Daniel García Aubert
d5348dd9d4
Rename fields from headers of metrics
4 years ago