mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-26 17:45:30 +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";
|
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();
|
Span currentSpan = Span.current();
|
||||||
String traceId = null;
|
String traceId = null;
|
||||||
if (currentSpan != null) {
|
if (currentSpan != null) {
|
||||||
@ -120,6 +113,14 @@ public class RequestContext implements ContextInterface {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.traceId = traceId;
|
this.traceId = traceId;
|
||||||
|
|
||||||
|
// Uniform common logging of requests across APIs
|
||||||
|
log.info(toString());
|
||||||
|
|
||||||
|
// API metrics
|
||||||
|
if (metricUtils != null) {
|
||||||
|
captureAPIMetrics(metricUtils, this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -54,7 +54,7 @@ dependencies {
|
|||||||
annotationProcessor externalDependency.lombok
|
annotationProcessor externalDependency.lombok
|
||||||
runtimeOnly externalDependency.log4jCore
|
runtimeOnly externalDependency.log4jCore
|
||||||
runtimeOnly externalDependency.log4j2Api
|
runtimeOnly externalDependency.log4j2Api
|
||||||
runtimeOnly externalDependency.logbackClassic
|
implementation externalDependency.logbackClassic
|
||||||
implementation externalDependency.awsMskIamAuth
|
implementation externalDependency.awsMskIamAuth
|
||||||
implementation externalDependency.azureIdentityExtensions
|
implementation externalDependency.azureIdentityExtensions
|
||||||
implementation externalDependency.azureIdentity
|
implementation externalDependency.azureIdentity
|
||||||
|
Loading…
x
Reference in New Issue
Block a user