Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ hypertrace-grpc-client-utils ={ module = "org.hypertrace.core.grpcutils:grpc-cli
hypertrace-grpc-client-rxUtils = { module = "org.hypertrace.core.grpcutils:grpc-client-rx-utils", version.ref = "hypertrace-grpc-utils"}
hypertrace-serviceFramework-metrics = { module = "org.hypertrace.core.serviceframework:platform-metrics", version.ref = "hypertrace-serviceFramework" }
hypertrace-serviceFramework-framework = { module = "org.hypertrace.core.serviceframework:platform-service-framework", version.ref = "hypertrace-serviceFramework" }
hypertrace-data-model = { module ="org.hypertrace.core.datamodel:data-model", version = "0.1.27" }
hypertrace-data-model = { module ="org.hypertrace.core.datamodel:data-model", version = "0.1.29-SNAPSHOT" }
hypertrace-kafkaStreams-framework = { module = "org.hypertrace.core.kafkastreams.framework:kafka-streams-framework", version.ref = "hypertrace-kafkaStreams" }
hypertrace-kafkaStreams-avroPartitioners = { module = "org.hypertrace.core.kafkastreams.framework:avro-partitioners", version.ref = "hypertrace-kafkaStreams" }
hypertrace-kafkaStreams-weightedGroupPartitioners = { module = "org.hypertrace.core.kafkastreams.framework:weighted-group-partitioner", version.ref = "hypertrace-kafkaStreams" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,41 +56,24 @@ public static StructuredTraceGraph buildGraph(StructuredTrace trace) {

private static void debugGraph(
String logPrefix, StructuredTraceGraph graph, StructuredTrace trace) {
if (null != graph
&& (null == graph.getTraceEntitiesGraph() || null == graph.getTraceEventsGraph())) {
if (null != graph && null == graph.getTraceEventsGraph()) {
LOG.info(
logPrefix
+ "StructuredTraceGraph is not built correctly, trace {}, Is events graph non-null:"
+ " {}."
+ " Is entities graph non-null: {}",
+ " {}.",
trace,
(null != graph.getTraceEventsGraph()),
(null != graph.getTraceEntitiesGraph()));
(null != graph.getTraceEventsGraph()));

// build the graph again and check
StructuredTraceGraph tempGraph = new StructuredTraceGraph(trace);
LOG.info(
logPrefix
+ "Recreating StructuredTraceGraph. Is events graph non-null: {}."
+ " Is entities graph non-null: {}",
(null != tempGraph.getTraceEventsGraph()),
(null != tempGraph.getTraceEntitiesGraph()));
logPrefix + "Recreating StructuredTraceGraph. Is events graph non-null: {}.",
(null != tempGraph.getTraceEventsGraph()));

tempGraph.reCreateTraceEventsGraph(trace);
LOG.info(
logPrefix
+ "Recreating events graph. Is events graph non-null: {}."
+ " Is entities graph non-null: {}",
(null != tempGraph.getTraceEventsGraph()),
(null != tempGraph.getTraceEntitiesGraph()));

tempGraph.reCreateTraceEntitiesGraph(trace);
LOG.info(
logPrefix
+ "Recreating entities graph. Is events graph non-null: {}."
+ " Is entities graph non-null: {}",
(null != tempGraph.getTraceEventsGraph()),
(null != tempGraph.getTraceEntitiesGraph()));
logPrefix + "Recreating events graph. Is events graph non-null: {}.",
(null != tempGraph.getTraceEventsGraph()));
}
}
}