amplitude / amplitude/Amplitude-Java

Unable to get groupProperties, eventProperties, groups in amplitude session

Offen
#104 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
question
Vorherrschende Sprache
Java
Sterne
10
Forks
10
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## 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,`

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.