-
Notifications
You must be signed in to change notification settings - Fork 0
Logging
Dmitrii Hromtsov edited this page Jan 31, 2023
·
1 revision
- Logback
- Micrometer tracing
There are 2 spring profiles configured for all modules: prod and dev.
- prod profile logs only to D:/business-lunch-provider/backend/{yyyy-MM-dd}/module_name.log. There is history and max size cap configured.
- dev profile logs as prod, yet duplicates logs into console.
For backend Micrometer tracing library is being used which sets traceId and spanId for each request.
- TraceId – This is an id that is assigned to a single request, job, or action. Something like each unique user initiated web request will have its own traceId.
- SpanId – Tracks a unit of work. Think of a request that consists of multiple steps. Each step could have its own spanId and be tracked individually. By default, any application flow will start with same TraceId and SpanId.