budibase/packages/backend-core
Rory Powell 976b3a55ca Update logging to support dd trace attributes (#10086)
* Update logging middleware to integrate with pino for console logging

* Remove elastic apm references, use updated core middlewares

* Remove redundant LOG_LEVEL definitions

* Remove no longer needed jest logging overrides

* lint

* Backwards compat between console log helpers and pino

* Configurable DISABLE_HTTP_LOGGING

* Don't log 4xx as errors

* Remove redundant ENABLE_4XX_HTTP_LOGGING

* Cleanup migrations and event logging

* Improve bb-alert logging

* Add DISABLE_HTTP_LOGGING to helm chart

* Add ops endpoints for testing

* Disable http logging in dev

* Backwards compatible tracing implementation

* Naming update on http logging env var

* lint

* Update packages/backend-core/src/environment.ts

Co-authored-by: Adria Navarro <adria@revityapp.com>

* Merge

* Lint

* Fix console.warn failing mock by replacing with alerts mock instead

* Lint

---------

Co-authored-by: Adria Navarro <adria@revityapp.com>
2023-04-04 15:08:46 +01:00
..
__mocks__ File authentication using presigned URLs (#8883) 2022-12-15 11:35:22 +00:00
scripts Add force exit, -e flag and streaming to tests (#10151) 2023-03-31 10:32:13 +01:00
src Update logging to support dd trace attributes (#10086) 2023-04-04 15:08:46 +01:00
tests Update logging to support dd trace attributes (#10086) 2023-04-04 15:08:46 +01:00
.gitignore Merge develop 2022-09-28 08:56:45 +01:00
LICENSE
README.md
jest-testcontainers-config.js Remove redundant env from jestTestcontainersConfigGenerator 2023-02-01 11:49:25 +00:00
jest.config.ts Run CI steps in parallel (#9760) 2023-02-21 17:13:24 +00:00
package.json Update logging to support dd trace attributes (#10086) 2023-04-04 15:08:46 +01:00
plugins.ts Fix for budibase plugin skeleton, which utilises the old import style. 2022-12-12 12:31:32 +00:00
tsconfig.build.json Correlation id's and log context (#7232) 2023-01-11 20:39:33 +00:00
tsconfig.json Removing pro from backend-core. 2023-02-15 13:49:30 +00:00
yarn.lock Update logging to support dd trace attributes (#10086) 2023-04-04 15:08:46 +01:00

README.md

Budibase Core backend library

This library contains core functionality, like auth and security features which are shared between backend services.

Note about top level JS files

For the purposes of being able to do say require("@budibase/backend-core/permissions") we need to specify the exports at the top-level of the module.

For these files they should be limited to a single require of the file that should be exported and then a single module.exports = ... to export the file in commonJS.