Sends a new [group event] to Segment. Delivery happens asynchronously on a background thread. It is best effort. There is no guarantee that the event will be delivered to Segment. Events may be dropped when the client is backlogged. Errors are logged but not returned. [track event]: https://segment.com/docs/connections/spec/group/
(&self, user_id: Uuid, group_id: Uuid, traits: serde_json::Value)
| 150 | /// |
| 151 | /// [track event]: https://segment.com/docs/connections/spec/group/ |
| 152 | pub fn group(&self, user_id: Uuid, group_id: Uuid, traits: serde_json::Value) { |
| 153 | self.send(BatchMessage::Group(Group { |
| 154 | user: User::UserId { |
| 155 | user_id: user_id.to_string(), |
| 156 | }, |
| 157 | group_id: group_id.to_string(), |
| 158 | traits, |
| 159 | ..Default::default() |
| 160 | })); |
| 161 | } |
| 162 | |
| 163 | fn send(&self, mut message: BatchMessage) { |
| 164 | if self.client_side { |