@@ -45,7 +45,7 @@ import { DEBUG_BUILD } from '../debug-build';
4545 * via `node:diagnostics_channel`. Events are discriminated by their `type` field.
4646 * @see https://github.com/vercel/ai/pull/15660
4747 */
48- export const AI_SDK_TELEMETRY_TRACING_CHANNEL = 'ai:telemetry' ;
48+ const AI_SDK_TELEMETRY_TRACING_CHANNEL = 'ai:telemetry' ;
4949
5050const ORIGIN = 'auto.vercelai.channel' ;
5151const INTEGRATION_NAME = 'VercelAI' ;
@@ -99,7 +99,7 @@ type ChannelEventType =
9999 * identity across `start`/`end`/`asyncEnd`/`error`, and Node's `tracingChannel` attaches
100100 * `result`/`error` to it as the traced promise settles.
101101 */
102- export interface VercelAiChannelMessage {
102+ interface VercelAiChannelMessage {
103103 type : ChannelEventType ;
104104 event : Record < string , unknown > ;
105105 result ?: unknown ;
@@ -110,10 +110,10 @@ export interface VercelAiChannelMessage {
110110 * Payload observed by subscribers — the channel context with the span stamped on by the factory's
111111 * `start` transform, plus a marker for events we deliberately don't open a span for (`step`).
112112 */
113- export type VercelAiTracingChannelContextWithSpan < T > = T & { _sentrySpan ?: Span ; _sentrySkip ?: boolean } ;
113+ type VercelAiTracingChannelContextWithSpan < T > = T & { _sentrySpan ?: Span ; _sentrySkip ?: boolean } ;
114114
115115/** Subscriber object accepted by {@link VercelAiTracingChannel.subscribe}. */
116- export interface VercelAiTracingChannelSubscribers < T > {
116+ interface VercelAiTracingChannelSubscribers < T > {
117117 start : ( data : VercelAiTracingChannelContextWithSpan < T > ) => void ;
118118 asyncStart : ( data : VercelAiTracingChannelContextWithSpan < T > ) => void ;
119119 asyncEnd : ( data : VercelAiTracingChannelContextWithSpan < T > ) => void ;
@@ -122,7 +122,7 @@ export interface VercelAiTracingChannelSubscribers<T> {
122122}
123123
124124/** Minimal tracing-channel surface the subscriber depends on. */
125- export interface VercelAiTracingChannel < T extends object > {
125+ interface VercelAiTracingChannel < T extends object > {
126126 subscribe ( subs : Partial < VercelAiTracingChannelSubscribers < T > > ) : void ;
127127}
128128
@@ -136,7 +136,7 @@ export interface VercelAiTracingChannel<T extends object> {
136136 * nested AI SDK operations (model calls, tool calls) become children of the enclosing span without
137137 * any manual parent bookkeeping here.
138138 */
139- export type VercelAiTracingChannelFactory = < T extends object > (
139+ type VercelAiTracingChannelFactory = < T extends object > (
140140 name : string ,
141141 transformStart : ( data : T ) => Span ,
142142) => VercelAiTracingChannel < T > ;
0 commit comments