amplitude / amplitude/Amplitude-Java

Unable to get groupProperties, eventProperties, groups in amplitude session

Đang mở
#104 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
question
Ngôn ngữ chính
Java
Star
10
Fork
10
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## Summary
I am unable to get the following fields in logged event amplitude dashboard,
I am passing the following properties,
`eventProperties, groupProperties, groups` even they are assigned,
` Event ampliEvent = new Event(event.getValue(),(String)hostInfo.get("host"));
JSONObject groupProps = new JSONObject();
// groupProps.put("license",((String)pluginInfo.get("licenseId")).equalsIgnoreCase("NONE")?"unavailable": (String)pluginInfo.get("licenseId"));
groupProps.put("test","test_group");
ampliEvent.groupProperties = groupProps;
JSONObject groups = new JSONObject();
groups.put("orgId", 10);
ampliEvent.groups = groups;
ampliEvent.userProperties = groups;
ampliEvent.eventProperties = new JSONObject().put("test","testEvent");
JSONObject finalObject = ampliEvent.toJsonObject();
`

The following is the amplitude session logged with missing properties in group_properties, event_properties, groups
`"device_type": null,
"display_name": "AppInstalled",
"dma": null,
"event_id": 0,
"event_properties": {
},
"event_time": "2024-06-11 06:30:00.834000",
"event_type": "AppInstalled",
"group_properties": {
},
"groups": {
},
"ip_address": null,
"language": null,
"library": "amplitude-java/1.12.2",
"location_lat": 0.0,
"location_lng": 0.0,
"os": "",
"os_name": null,
"os_version": null,
"partner_id": null,
"paying": null,
"plan": {
},
"platform": null,
"processed_time": "2024-06-11 06:30:24.288000",
"region": null,
"sample_rate": null,
"server_received_time": "2024-06-11 06:30:22.792000",
"server_upload_time": "2024-06-11 06:30:22.795000",
"session_id": -1,
"source_id": null,
"start_version": null,
"timeline_hidden": false,`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.