mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-12 02:25:43 +00:00
fix(logging): minor modifications for logging (#11703)
This commit is contained in:
parent
7c8dba4bd9
commit
ffefb9d8fe
@ -460,7 +460,7 @@ public class Constants {
|
||||
|
||||
// Logging MDC
|
||||
public static final String MDC_ENTITY_URN = "entityUrn";
|
||||
public static final String MDC_ASPECT_NAME = "";
|
||||
public static final String MDC_ASPECT_NAME = "aspectName";
|
||||
public static final String MDC_ENTITY_TYPE = "entityType";
|
||||
public static final String MDC_CHANGE_TYPE = "changeType";
|
||||
|
||||
|
||||
@ -388,24 +388,24 @@ public class UpdateGraphIndicesService implements SearchIndicesService {
|
||||
// Remove any old edges that no longer exist first
|
||||
if (!subtractiveDifference.isEmpty()) {
|
||||
log.debug("Removing edges: {}", subtractiveDifference);
|
||||
subtractiveDifference.forEach(graphService::removeEdge);
|
||||
MetricUtils.counter(this.getClass(), GRAPH_DIFF_MODE_REMOVE_METRIC)
|
||||
.inc(subtractiveDifference.size());
|
||||
subtractiveDifference.forEach(graphService::removeEdge);
|
||||
}
|
||||
|
||||
// Then add new edges
|
||||
if (!additiveDifference.isEmpty()) {
|
||||
log.debug("Adding edges: {}", additiveDifference);
|
||||
additiveDifference.forEach(graphService::addEdge);
|
||||
MetricUtils.counter(this.getClass(), GRAPH_DIFF_MODE_ADD_METRIC)
|
||||
.inc(additiveDifference.size());
|
||||
additiveDifference.forEach(graphService::addEdge);
|
||||
}
|
||||
|
||||
// Then update existing edges
|
||||
if (!mergedEdges.isEmpty()) {
|
||||
log.debug("Updating edges: {}", mergedEdges);
|
||||
MetricUtils.counter(this.getClass(), GRAPH_DIFF_MODE_UPDATE_METRIC).inc(mergedEdges.size());
|
||||
mergedEdges.forEach(graphService::upsertEdge);
|
||||
MetricUtils.counter(this.getClass(), GRAPH_DIFF_MODE_UPDATE_METRIC).inc(mergedEdges.size());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user