Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement logging architecture with aggregation support #101

Merged
merged 59 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from 54 commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
376f6bc
CHORE: added pinojs package
tpmpb Nov 16, 2024
cfb8def
CHORE: added nextjs pino config
tpmpb Nov 16, 2024
1f3f1a6
FEATURE: added logs inicial structure
tpmpb Nov 16, 2024
d01d7a3
feature loggers improvement
tpmpb Nov 20, 2024
c16ea05
feature loggers improvement
tpmpb Nov 20, 2024
fffa551
feature loggers improvement
tpmpb Nov 29, 2024
bd3d6ce
FEATURE: added logs
tpmpb Nov 29, 2024
1cedb5c
merge
tpmpb Dec 4, 2024
5b27d40
middleware and midaz-id implementation
tpmpb Dec 4, 2024
3ec3c46
feature loggers improvement
tpmpb Dec 6, 2024
ff00791
implement log on portfolio
tpmpb Dec 9, 2024
c4343e9
fix: pr changes
tpmpb Dec 10, 2024
8171ac1
fix: pr changes
tpmpb Dec 10, 2024
e03a7af
Merge branch develop into feature/logger
tpmpb Dec 10, 2024
fef14e3
remove unused type
tpmpb Dec 10, 2024
58eb532
remove unused code
tpmpb Dec 10, 2024
529b28e
fix: remove console and unused codes
tpmpb Dec 12, 2024
8970253
wip logger
tpmpb Dec 13, 2024
55e59d1
wip inversify logger
tpmpb Dec 17, 2024
0e2ec55
:sparkles: feat: Updated LogOperation decorator
caioaletroca Dec 17, 2024
a0ac1ff
Merge pull request #92 from LerianStudio/develop
augusto-draxx Dec 17, 2024
f67415e
wip logger
tpmpb Dec 18, 2024
00c04ea
wip logger
tpmpb Dec 18, 2024
29e2479
wip added apply middleware
tpmpb Dec 20, 2024
45e05a0
wip added logs params
tpmpb Dec 21, 2024
f533320
wip added logs params
tpmpb Dec 23, 2024
6e1b7b6
wip added logs params
tpmpb Dec 26, 2024
684ef96
implement midaz id
tpmpb Dec 28, 2024
05f3ba5
midazid logger
tpmpb Dec 28, 2024
f33fc9b
feature: added log deletation
tpmpb Jan 3, 2025
447db62
Update .env.example
tpmpb Jan 3, 2025
134768e
feature: remove unused code
tpmpb Jan 6, 2025
fcf6b50
Merge branch 'feature/midaz-logger-v1' of github.com:LerianStudio/mid…
tpmpb Jan 6, 2025
504c731
Merge branch 'develop' of github.com:LerianStudio/midaz-console into …
tpmpb Jan 6, 2025
71e754c
WIP: midazId implementation
tpmpb Jan 6, 2025
47ca3ed
feat: clean up logger v.0 implementation
tpmpb Jan 7, 2025
891d0a1
feat: implement new httpfetchmidazId on product repository and tests
Jan 9, 2025
5bb9960
feat: remove log-container
Jan 9, 2025
c11415b
feat: portfolio repository
Jan 9, 2025
33d49c2
feat: added midazhttpauth on account repository
Jan 9, 2025
c4778cf
feat: added midazhttpauth in all files repositories
Jan 9, 2025
95529df
feat: remove unused code
Jan 9, 2025
6482610
feat: remove unused code
Jan 9, 2025
790eb7e
feat: remove unused code
Jan 10, 2025
29da4f9
feat: remove commentary
Jan 11, 2025
44763fc
feat: comentaries to indicate how implmentation works
Jan 11, 2025
9f0ad3f
feat: remove lazy service
Jan 11, 2025
38ee1a4
feat: remove lazy service
Jan 11, 2025
f798a85
feat: merge with develop
Jan 11, 2025
842aed7
feat: create container load and remove lazy service
Jan 13, 2025
2dcb1e4
Update logger-aggregator.ts
caioaletroca Jan 13, 2025
e138d2a
feat: fix build
Jan 13, 2025
95bba8e
feat: fix build
Jan 13, 2025
c23a36d
feat: improve midaz log lib to improve dev experience
Jan 15, 2025
989f186
Merge remote-tracking branch 'origin/develop' into feature/midaz-logg…
Jan 15, 2025
66f5a3b
feat: added new logger structure implementation
tpmpb Jan 16, 2025
6a0d8c6
feat: implement midaz id clearscope
tpmpb Jan 16, 2025
13869c8
feat: improve prettier fixes build
tpmpb Jan 16, 2025
a82680d
feat: remove log commentary
tpmpb Jan 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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