CartoDB-SQL-API/lib/services
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
..
error-handler-factory.js Eslint errors 2019-12-26 17:46:27 +01:00
error-handler.js Eslint errors 2019-12-26 17:46:27 +01:00
logger.js Run eslint --fix 2019-12-23 18:19:08 +01:00
pg-entities-access-validator.js Run eslint --fix 2019-12-23 18:19:08 +01:00
pubsub-metrics.js Add pubsub metrics (#642) 2020-02-26 17:19:06 +01:00
stream-copy-metrics.js Run eslint --fix 2019-12-23 18:19:08 +01:00
stream-copy.js Run eslint --fix 2019-12-23 18:19:08 +01:00
throttler-stream.js Run eslint --fix 2019-12-23 18:19:08 +01:00
user-database-service.js Run eslint --fix 2019-12-23 18:19:08 +01:00
user-limits.js Run eslint --fix 2019-12-23 18:19:08 +01:00