MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / group

Method group

src/segment/src/lib.rs:152–161  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 {

Callers 15

extract_cluster_sizeFunction · 0.80
md_includeFunction · 0.80
_terraform_apply_gcpFunction · 0.80
parse_bytesFunction · 0.80
parse_since_from_explainFunction · 0.80
find_proxy_portFunction · 0.80
check_workload_classFunction · 0.80
doc_create_sourceMethod · 0.80

Calls 3

GroupClass · 0.85
sendMethod · 0.45
to_stringMethod · 0.45

Tested by 1