autotel 2.26.1 → 2.26.3

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.
package/src/index.ts CHANGED
@@ -187,6 +187,32 @@ export {
187
187
  createObservableGauge,
188
188
  } from './metric-helpers';
189
189
 
190
+ // LLM-tuned histogram buckets — pass genAiMetricViews() to your
191
+ // MeterProvider so gen_ai.* histograms have useful resolution.
192
+ export {
193
+ GEN_AI_DURATION_BUCKETS_SECONDS,
194
+ GEN_AI_TOKEN_USAGE_BUCKETS,
195
+ GEN_AI_COST_USD_BUCKETS,
196
+ genAiMetricViews,
197
+ llmHistogramAdvice,
198
+ } from './gen-ai-metrics';
199
+
200
+ // OTel GenAI span event helpers — record prompt-sent / response-received
201
+ // / retry / tool-call / stream-first-token as timestamped events aligned
202
+ // with the published GenAI semantic conventions.
203
+ export {
204
+ recordPromptSent,
205
+ recordResponseReceived,
206
+ recordRetry,
207
+ recordToolCall,
208
+ recordStreamFirstToken,
209
+ type PromptSentEvent,
210
+ type ResponseReceivedEvent,
211
+ type RetryEvent,
212
+ type ToolCallEvent,
213
+ type StreamFirstTokenEvent,
214
+ } from './gen-ai-events';
215
+
190
216
  // Tracer helpers for custom spans
191
217
  export {
192
218
  getTracer,