Skip to content

Commit

Permalink
Merge pull request #101 from LerianStudio/feature/midaz-logger-v1
Browse files Browse the repository at this point in the history
feat: implement logging architecture with aggregation support
  • Loading branch information
tpmpb authored Jan 22, 2025
2 parents f3273d0 + a82680d commit 34d7701
Show file tree
Hide file tree
Showing 93 changed files with 2,782 additions and 28,282 deletions.
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ MIDAZ_API_PORT=3000
MIDAZ_BASE_PATH='http://${MIDAZ_API_HOST}:${MIDAZ_API_PORT}/v1'
MIDAZ_TRANSACTION_BASE_HOST='transaction'
MIDAZ_TRANSACTION_BASE_PORT=3002
MIDAZ_TRANSACTION_BASE_PATH='http://${MIDAZ_API_HOST}:${MIDAZ_TRANSACTION_BASE_PORT}/v1'
MIDAZ_TRANSACTION_BASE_PATH='http://${MIDAZ_API_HOST}:${MIDAZ_TRANSACTION_BASE_PORT}/v1'

ENABLE_DEBUG=true
NODE_ENV=development
18 changes: 16 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { hostname } from 'os'

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
logging: {
fetches: {
fullUrl: true
Expand Down Expand Up @@ -46,9 +47,22 @@ const nextConfig = {
? { properties: ['^data-testid$'] }
: false
},
webpack: (config, { isServer }) => {
config.resolve.fallback = {
...config.resolve.fallback,
worker_threads: false,
pino: false
}

return config
},
experimental: {
instrumentationHook: true,
serverComponentsExternalPackages: ['@opentelemetry/instrumentation']
serverComponentsExternalPackages: [
'pino',
'pino-pretty',
'@opentelemetry/instrumentation'
],
instrumentationHook: true
}
}

Expand Down
Loading

0 comments on commit 34d7701

Please sign in to comment.