Skip to content

Commit c53eba1

Browse files
committed
more dead attributes
1 parent 6ed8672 commit c53eba1

File tree

1 file changed

+0
-159
lines changed

1 file changed

+0
-159
lines changed

packages/core/src/tracing/vercel-ai/vercel-ai-attributes.ts

Lines changed: 0 additions & 159 deletions
Original file line numberDiff line numberDiff line change
@@ -43,26 +43,6 @@ export const AI_PROMPT_ATTRIBUTE = 'ai.prompt';
4343
*/
4444
export const AI_SCHEMA_ATTRIBUTE = 'ai.schema';
4545

46-
/**
47-
* `generateObject` function - `ai.generateObject` span
48-
* `streamObject` function - `ai.streamObject` span
49-
*
50-
* The name of the schema that was passed into the function
51-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#generateobject-function
52-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#streamobject-function
53-
*/
54-
export const AI_SCHEMA_NAME_ATTRIBUTE = 'ai.schema.name';
55-
56-
/**
57-
* `generateObject` function - `ai.generateObject` span
58-
* `streamObject` function - `ai.streamObject` span
59-
*
60-
* The description of the schema that was passed into the function
61-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#generateobject-function
62-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#streamobject-function
63-
*/
64-
export const AI_SCHEMA_DESCRIPTION_ATTRIBUTE = 'ai.schema.description';
65-
6646
/**
6747
* `generateObject` function - `ai.generateObject` span
6848
* `streamObject` function - `ai.streamObject` span
@@ -73,26 +53,6 @@ export const AI_SCHEMA_DESCRIPTION_ATTRIBUTE = 'ai.schema.description';
7353
*/
7454
export const AI_RESPONSE_OBJECT_ATTRIBUTE = 'ai.response.object';
7555

76-
/**
77-
* `generateObject` function - `ai.generateObject` span
78-
* `streamObject` function - `ai.streamObject` span
79-
*
80-
* The object generation mode, e.g. `json`
81-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#generateobject-function
82-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#streamobject-function
83-
*/
84-
export const AI_SETTINGS_MODE_ATTRIBUTE = 'ai.settings.mode';
85-
86-
/**
87-
* `generateObject` function - `ai.generateObject` span
88-
* `streamObject` function - `ai.streamObject` span
89-
*
90-
* The output type that was used, e.g. `object` or `no-schema`
91-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#generateobject-function
92-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#streamobject-function
93-
*/
94-
export const AI_SETTINGS_OUTPUT_ATTRIBUTE = 'ai.settings.output';
95-
9656
/**
9757
* `embed` function - `ai.embed.doEmbed` span
9858
* `embedMany` function - `ai.embedMany` span
@@ -103,16 +63,6 @@ export const AI_SETTINGS_OUTPUT_ATTRIBUTE = 'ai.settings.output';
10363
*/
10464
export const AI_VALUES_ATTRIBUTE = 'ai.values';
10565

106-
/**
107-
* `embed` function - `ai.embed.doEmbed` span
108-
* `embedMany` function - `ai.embedMany` span
109-
*
110-
* An array of JSON-stringified embeddings
111-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#embed-function
112-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#embedmany-function
113-
*/
114-
export const AI_EMBEDDINGS_ATTRIBUTE = 'ai.embeddings';
115-
11666
// =============================================================================
11767
// GENERATETEXT FUNCTION - UNIQUE ATTRIBUTES
11868
// =============================================================================
@@ -149,14 +99,6 @@ export const AI_RESPONSE_FINISH_REASON_ATTRIBUTE = 'ai.response.finishReason';
14999
*/
150100
export const AI_SETTINGS_MAX_STEPS_ATTRIBUTE = 'ai.settings.maxSteps';
151101

152-
/**
153-
* `generateText` function - `ai.generateText.doGenerate` span
154-
*
155-
* The format of the prompt
156-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#generatetext-function
157-
*/
158-
export const AI_PROMPT_FORMAT_ATTRIBUTE = 'ai.prompt.format';
159-
160102
/**
161103
* `generateText` function - `ai.generateText.doGenerate` span
162104
*
@@ -173,75 +115,10 @@ export const AI_PROMPT_MESSAGES_ATTRIBUTE = 'ai.prompt.messages';
173115
*/
174116
export const AI_PROMPT_TOOLS_ATTRIBUTE = 'ai.prompt.tools';
175117

176-
/**
177-
* `generateText` function - `ai.generateText.doGenerate` span
178-
*
179-
* The stringified tool choice setting (JSON)
180-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#generatetext-function
181-
*/
182-
export const AI_PROMPT_TOOL_CHOICE_ATTRIBUTE = 'ai.prompt.toolChoice';
183-
184-
// =============================================================================
185-
// STREAMTEXT FUNCTION - UNIQUE ATTRIBUTES
186-
// =============================================================================
187-
188-
/**
189-
* `streamText` function - `ai.streamText.doStream` span
190-
*
191-
* The time it took to receive the first chunk in milliseconds
192-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#streamtext-function
193-
*/
194-
export const AI_RESPONSE_MS_TO_FIRST_CHUNK_ATTRIBUTE = 'ai.response.msToFirstChunk';
195-
196-
/**
197-
* `streamText` function - `ai.streamText.doStream` span
198-
*
199-
* The time it took to receive the finish part of the LLM stream in milliseconds
200-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#streamtext-function
201-
*/
202-
export const AI_RESPONSE_MS_TO_FINISH_ATTRIBUTE = 'ai.response.msToFinish';
203-
204-
/**
205-
* `streamText` function - `ai.streamText.doStream` span
206-
*
207-
* The average completion tokens per second
208-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#streamtext-function
209-
*/
210-
export const AI_RESPONSE_AVG_COMPLETION_TOKENS_PER_SECOND_ATTRIBUTE = 'ai.response.avgCompletionTokensPerSecond';
211-
212-
// =============================================================================
213-
// EMBED FUNCTION - UNIQUE ATTRIBUTES
214-
// =============================================================================
215-
216-
/**
217-
* `embed` function - `ai.embed` span
218-
*
219-
* The value that was passed into the `embed` function
220-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#embed-function
221-
*/
222-
export const AI_VALUE_ATTRIBUTE = 'ai.value';
223-
224-
/**
225-
* `embed` function - `ai.embed` span
226-
*
227-
* A JSON-stringified embedding
228-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#embed-function
229-
*/
230-
export const AI_EMBEDDING_ATTRIBUTE = 'ai.embedding';
231-
232118
// =============================================================================
233119
// BASIC LLM SPAN INFORMATION
234120
// =============================================================================
235121

236-
/**
237-
* Basic LLM span information
238-
* Multiple spans
239-
*
240-
* The functionId that was set through `telemetry.functionId`
241-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#basic-llm-span-information
242-
*/
243-
export const RESOURCE_NAME_ATTRIBUTE = 'resource.name';
244-
245122
/**
246123
* Basic LLM span information
247124
* Multiple spans
@@ -251,24 +128,6 @@ export const RESOURCE_NAME_ATTRIBUTE = 'resource.name';
251128
*/
252129
export const AI_MODEL_ID_ATTRIBUTE = 'ai.model.id';
253130

254-
/**
255-
* Basic LLM span information
256-
* Multiple spans
257-
*
258-
* The provider of the model
259-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#basic-llm-span-information
260-
*/
261-
export const AI_MODEL_PROVIDER_ATTRIBUTE = 'ai.model.provider';
262-
263-
/**
264-
* Basic LLM span information
265-
* Multiple spans
266-
*
267-
* The request headers that were passed in through `headers`
268-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#basic-llm-span-information
269-
*/
270-
export const AI_REQUEST_HEADERS_ATTRIBUTE = 'ai.request.headers';
271-
272131
/**
273132
* Basic LLM span information
274133
* Multiple spans
@@ -278,15 +137,6 @@ export const AI_REQUEST_HEADERS_ATTRIBUTE = 'ai.request.headers';
278137
*/
279138
export const AI_RESPONSE_PROVIDER_METADATA_ATTRIBUTE = 'ai.response.providerMetadata';
280139

281-
/**
282-
* Basic LLM span information
283-
* Multiple spans
284-
*
285-
* The maximum number of retries that were set
286-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#basic-llm-span-information
287-
*/
288-
export const AI_SETTINGS_MAX_RETRIES_ATTRIBUTE = 'ai.settings.maxRetries';
289-
290140
/**
291141
* Basic LLM span information
292142
* Multiple spans
@@ -304,15 +154,6 @@ export const AI_USAGE_CACHED_INPUT_TOKENS_ATTRIBUTE = 'ai.usage.cachedInputToken
304154
*/
305155
export const AI_TELEMETRY_FUNCTION_ID_ATTRIBUTE = 'ai.telemetry.functionId';
306156

307-
/**
308-
* Basic LLM span information
309-
* Multiple spans
310-
*
311-
* The metadata that was passed in through `telemetry.metadata`
312-
* @see https://ai-sdk.dev/docs/ai-sdk-core/telemetry#basic-llm-span-information
313-
*/
314-
export const AI_TELEMETRY_METADATA_ATTRIBUTE = 'ai.telemetry.metadata';
315-
316157
/**
317158
* Basic LLM span information
318159
* Multiple spans

0 commit comments

Comments
 (0)