Skip to content

Commit 1828d37

Browse files
authored
Empty metrics issue fixed! (#105)
* empty metrics issue fixed! * - SDK Version update Co-authored-by: Zahid Zafar <>
1 parent d32de0c commit 1828d37

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2+
22.06.3
3+
* Fixed a bug where empty metrics were sent with session begin request.
4+
15
22.06.2
26
* Fixed a bug where metrics were not sent with session begin request.
37

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.2"
15+
#define COUNTLY_SDK_VERSION "22.06.3"
1616
#define COUNTLY_POST_THRESHOLD 2000
1717
#define COUNTLY_KEEPALIVE_INTERVAL 3000
1818
#define COUNTLY_MAX_EVENTS_DEFAULT 200

src/countly.cpp

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

521-
if (configuration->metrics.contains("metrics")) {
521+
if (configuration->metrics.size() > 0) {
522522
data["metrics"] = configuration->metrics.dump();
523523
}
524524

0 commit comments

Comments
 (0)