Skip to content

Conversation

@findingrish
Copy link
Contributor

No description provided.

@findingrish findingrish requested review from a team, avinashkolluru and kotharironak July 21, 2021 08:17
shouldRebuildTraceEventsGraph
? StructuredTraceGraph.reCreateTraceEventsGraph(trace)
: StructuredTraceGraph.reCreateTraceEntitiesGraph(trace);
StructuredTraceGraph graph = cachedGraphThreadLocal.get();
Copy link
Contributor

@avinashkolluru avinashkolluru Jul 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a chance this can be null?
To be safe should we just create a new StructuredTraceGraph if null?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although that case shouldn't arise, but added a check for the cachedGraph in the first check

StructuredTraceGraph graph = StructuredTraceGraph.createGraph(trace);
StructuredTraceGraph graph = new StructuredTraceGraph(trace);
LOG.debug(
"Time taken in building StructuredTraceGraph, duration_millis:{} for tenantId:{}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not related to this PR, but wrap the below debug statement inside a LOG.isDebugEnabled() to avoid the computation of Duration.between(start, Instant.now()).toMillis()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

} else {
graph.reCreateTraceEntitiesGraph(trace);
}
LOG.debug(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.
wrap the below debug statement inside a LOG.isDebugEnabled()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@codecov
Copy link

codecov bot commented Jul 21, 2021

Codecov Report

Merging #228 (bca7f19) into main (f558c68) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##               main     #228   +/-   ##
=========================================
  Coverage     80.50%   80.50%           
  Complexity     1126     1126           
=========================================
  Files           101      101           
  Lines          4349     4349           
  Branches        400      400           
=========================================
  Hits           3501     3501           
  Misses          659      659           
  Partials        189      189           
Flag Coverage Δ
unit 80.50% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f558c68...bca7f19. Read the comment docs.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

avinashkolluru
avinashkolluru previously approved these changes Jul 21, 2021
@github-actions

This comment has been minimized.

} else {
cachedGraph.reCreateTraceEntitiesGraph(trace);
}
if (LOG.isDebugEnabled()) {
Copy link
Contributor

@surajpuvvada surajpuvvada Jul 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this log be inside the if condition ? or may be fix the log statement

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't get your point, what changes are you suggesting in the log statement?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it says building events graph but it could be either events or entities graph

@findingrish findingrish merged commit cebd6ee into main Jul 21, 2021
@findingrish findingrish deleted the data-model-update branch July 21, 2021 17:03
@github-actions
Copy link

Unit Test Results

  69 files  ±0    69 suites  ±0   49s ⏱️ -7s
359 tests ±0  359 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit cebd6ee. ± Comparison against base commit f558c68.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants