-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Introducing empty maps, so we will send 0 if non-existent Also max and min fix * wip - some renaming and added emptyMap for ScenarioStatistics Also added a test to check if all statistics are send even without created scenarios * Added CorrelationId based on current timestamp which is added to all urls if we send too much data for one url * Added DesignerUptime statistics which shows amount of seconds since designer has been initialized * wip - need to fully and correctly replace instant with clock made some changes to CorrelationId and extracted empty maps in the top of the file * Added test to check if all statistics are included even without created scenarios * Review fixes - some renaming and added test to check if all statistics are given even without created scenarios --------- Co-authored-by: Szymon Bogusz <[email protected]>
- Loading branch information
1 parent
2814790
commit 9f4f738
Showing
10 changed files
with
347 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
designer/server/src/main/scala/pl/touk/nussknacker/ui/statistics/CorrelationId.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package pl.touk.nussknacker.ui.statistics | ||
|
||
import java.util.UUID | ||
|
||
class CorrelationId(val value: String) extends AnyVal | ||
|
||
object CorrelationId { | ||
def apply(): CorrelationId = | ||
new CorrelationId(UUID.randomUUID().toString) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.