Skip to content

Commit d32de0c

Browse files
authored
- updated condition while adding metrics in request (#101)
* - updated condition while adding metrics in request * Changelog updated! * Change log updated again.
1 parent 1c0a8c3 commit d32de0c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
22.06.2
2+
* Fixed a bug where metrics were not sent with session begin request.
3+
14
22.06.1
25
* !! Major breaking change !! We are removing the 'LogLevel' enum out of the 'Countly' class which will change how that enum can be referenced. 'Countly::LogLevel' will not work, you will have to use 'cly::LogLevel' instead.
36
* Added functionality to record crash.

include/countly/constants.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "nlohmann/json.hpp"
1313

1414
#define COUNTLY_SDK_NAME "cpp-native-unknown"
15-
#define COUNTLY_SDK_VERSION "22.06.1"
15+
#define COUNTLY_SDK_VERSION "22.06.2"
1616
#define COUNTLY_POST_THRESHOLD 2000
1717
#define COUNTLY_KEEPALIVE_INTERVAL 3000
1818
#define COUNTLY_MAX_EVENTS_DEFAULT 200

src/countly.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,9 +518,10 @@ bool Countly::beginSession() {
518518
session_params.erase("user_details");
519519
}
520520

521-
if (session_params.contains("metrics")) {
521+
if (configuration->metrics.contains("metrics")) {
522522
data["metrics"] = configuration->metrics.dump();
523523
}
524+
524525

525526
requestModule->addRequestToQueue(data);
526527
session_params.erase("user_details");

0 commit comments

Comments
 (0)