@probelabs/probe 0.6.0-rc174 → 0.6.0-rc176

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -164,6 +164,17 @@ var SimpleAppTracer = class {
164
164
  console.log("[Event]", name, attributes);
165
165
  }
166
166
  }
167
+ /**
168
+ * Record a generic event (used by completionPrompt and other features)
169
+ */
170
+ // visor-disable: SimpleAppTracer uses this.sessionId because it's a per-session instance. AppTracer extracts from attributes because it's a singleton managing multiple sessions. Different architectures require different approaches.
171
+ recordEvent(name, attributes = {}) {
172
+ if (!this.isEnabled()) return;
173
+ this.addEvent(name, {
174
+ "session.id": this.sessionId,
175
+ ...attributes
176
+ });
177
+ }
167
178
  /**
168
179
  * Record delegation events
169
180
  */