Commit Graph

102 Commits (master)

Author SHA1 Message Date
Álvaro 5c491a25cf
Use env vars and fix tests
4 years ago
Daniel García Aubert 28f70f6877 Logger: rename key 'msg' => 'event_message'
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 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 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 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 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:
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 4dfc898587 Don't log when metrics where sent successfully
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
Daniel García Aubert 7e31b956bf Send stat_tag metric when available
4 years ago
Daniel García Aubert dbc5d65d90 Send template_hash as part of the metrics event
4 years ago
Daniel García Aubert 798d010776 Ensure "map_id" and "cache_buster" as part of the event
4 years ago
Daniel García Aubert 70f0b6ea50 Avoid to use "pubsub" for the name of modules, middlewares, variables, etc..
4 years ago
Daniel García Aubert 4e3ef96374 Add test to chek we still send events when errored map static tile
4 years ago
Daniel García Aubert c88a14bf43 Send metrics for map instantiations (named, anonymous and static) with the new format.
4 years ago
Daniel García Aubert c5cb2ea4cb Add FIXME comment
4 years ago
Daniel García Aubert fe9610abe9 Missing logger argument
4 years ago
Daniel García Aubert 1bbde4f5e3 Let to the caller to choose how to handle the call to a method
4 years ago
Daniel García Aubert e90c196598 Simplified metrics middleware and backend
4 years ago
Daniel García Aubert 42dc2915ea Send pubsub metrics once the response has finished
4 years ago