(cobra-to-sentry) capture application version from device field

This commit is contained in:
Benjamin Sergeant
2019-12-18 15:40:01 -08:00
parent 1933da7044
commit 626e190d91
3 changed files with 10 additions and 1 deletions

View File

@ -199,6 +199,11 @@ namespace ix
environmentTag.append(msg["device"]["environment"]);
tags.append(environmentTag);
Json::Value clientVersionTag;
clientVersionTag.append("client_version");
clientVersionTag.append(msg["device"]["app_version"]);
tags.append(clientVersionTag);
payload["tags"] = tags;
return _jsonWriter.write(payload);