CartoDB-SQL-API/lib/api/middlewares
Esther Lozano 419adea234
Add pubsub metrics (#642)
* Create middleware and service for pubsub metrics

* Use pubsub middleware for all request

* Replace isEnabled with isDisabled to avoid negation

* Use new headers names

* Add acceptance and unit tests

* Remove commented log calls

* Remove only filters in tests

Remove typo

* Refactor service to ease integration test

* Fix interaction with query controller

* Use middleware at api-router and test all controllers

* Rename user middleware function

* Use sinon latest version

* Create middleware and service for pubsub metrics

* Use pubsub middleware for all request

* Replace isEnabled with isDisabled to avoid negation

* Use new headers names

* Add acceptance and unit tests

* Remove commented log calls

* Remove only filters in tests

Remove typo

* Refactor service to ease integration test

* Fix interaction with query controller

* Use middleware at api-router and test all controllers

* Rename user middleware function

* Use sinon latest version

* Fix tests

* Fix typos

* Checks if pubsub config exists to enable the service

* Fix typo

* Normalize headers values for pubsub

* Trim fields when normalizing

* Trim fields when normalizing
2020-02-26 17:19:06 +01:00
..
access-validator.js Run eslint --fix 2019-12-23 18:19:08 +01:00
affected-tables.js Use development branch of query-tables 2019-10-15 13:23:43 +02:00
authorization.js Run eslint --fix 2019-12-23 18:19:08 +01:00
body-parser.js Run eslint --fix 2019-12-23 18:19:08 +01:00
cache-channel.js Changed folder structure to reflect application functionallity. Renamed files using hyphens instead of underscore to have a more consistent naming across the whole project 2019-10-03 18:24:39 +02:00
cache-control.js Please JSHint 2019-10-15 13:30:40 +02:00
cancel-on-client-abort.js Changed folder structure to reflect application functionallity. Renamed files using hyphens instead of underscore to have a more consistent naming across the whole project 2019-10-03 18:24:39 +02:00
connection-params.js Run eslint --fix 2019-12-23 18:19:08 +01:00
content.js Run eslint --fix 2019-12-23 18:19:08 +01:00
cors.js Rename accepted headers for metrics events (#641) 2020-02-18 11:14:06 +01:00
db-quota.js Run eslint --fix 2019-12-23 18:19:08 +01:00
error.js Add pubsub metrics (#642) 2020-02-26 17:19:06 +01:00
formatter.js Run eslint --fix 2019-12-23 18:19:08 +01:00
last-modified.js Run eslint --fix 2019-12-23 18:19:08 +01:00
log.js Run eslint --fix 2019-12-23 18:19:08 +01:00
logger.js Add pubsub metrics (#642) 2020-02-26 17:19:06 +01:00
params.js Eslint errors 2019-12-26 18:28:01 +01:00
profiler.js Consistent middleware naming 2019-10-03 19:35:18 +02:00
pubsub-metrics.js Add pubsub metrics (#642) 2020-02-26 17:19:06 +01:00
query-may-write.js Changed folder structure to reflect application functionallity. Renamed files using hyphens instead of underscore to have a more consistent naming across the whole project 2019-10-03 18:24:39 +02:00
rate-limit.js Run eslint --fix 2019-12-23 18:19:08 +01:00
served-by-host-header.js Changed folder structure to reflect application functionallity. Renamed files using hyphens instead of underscore to have a more consistent naming across the whole project 2019-10-03 18:24:39 +02:00
socket-timeout.js Eslint errors 2019-12-26 18:28:01 +01:00
surrogate-key.js Changed folder structure to reflect application functionallity. Renamed files using hyphens instead of underscore to have a more consistent naming across the whole project 2019-10-03 18:24:39 +02:00
timeout-limits.js Changed folder structure to reflect application functionallity. Renamed files using hyphens instead of underscore to have a more consistent naming across the whole project 2019-10-03 18:24:39 +02:00
user.js Add pubsub metrics (#642) 2020-02-26 17:19:06 +01:00