mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-25 09:00:50 +00:00
fix(logging): update object before logging (#14246)
This commit is contained in:
parent
fb44a85d9d
commit
7196c40a58
@ -103,13 +103,6 @@ public class RequestContext implements ContextInterface {
|
||||
this.agentName = "Unknown";
|
||||
}
|
||||
|
||||
// Uniform common logging of requests across APIs
|
||||
log.info(toString());
|
||||
// API metrics
|
||||
if (metricUtils != null) {
|
||||
captureAPIMetrics(metricUtils, this);
|
||||
}
|
||||
|
||||
Span currentSpan = Span.current();
|
||||
String traceId = null;
|
||||
if (currentSpan != null) {
|
||||
@ -120,6 +113,14 @@ public class RequestContext implements ContextInterface {
|
||||
}
|
||||
}
|
||||
this.traceId = traceId;
|
||||
|
||||
// Uniform common logging of requests across APIs
|
||||
log.info(toString());
|
||||
|
||||
// API metrics
|
||||
if (metricUtils != null) {
|
||||
captureAPIMetrics(metricUtils, this);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -54,7 +54,7 @@ dependencies {
|
||||
annotationProcessor externalDependency.lombok
|
||||
runtimeOnly externalDependency.log4jCore
|
||||
runtimeOnly externalDependency.log4j2Api
|
||||
runtimeOnly externalDependency.logbackClassic
|
||||
implementation externalDependency.logbackClassic
|
||||
implementation externalDependency.awsMskIamAuth
|
||||
implementation externalDependency.azureIdentityExtensions
|
||||
implementation externalDependency.azureIdentity
|
||||
|
Loading…
x
Reference in New Issue
Block a user