Skip to content

Commit 8117329

Browse files
authored
chore(ai): Clean up gen ai conventions (#123)
1 parent c20b728 commit 8117329

File tree

4 files changed

+0
-88
lines changed

4 files changed

+0
-88
lines changed

generated/attributes/gen_ai.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
- [gen_ai.assistant.message](#gen_aiassistantmessage)
88
- [gen_ai.choice](#gen_aichoice)
99
- [gen_ai.cost.input_tokens](#gen_aicostinput_tokens)
10-
- [gen_ai.cost.input_tokens.cached](#gen_aicostinput_tokenscached)
1110
- [gen_ai.cost.output_tokens](#gen_aicostoutput_tokens)
12-
- [gen_ai.cost.output_tokens.reasoning](#gen_aicostoutput_tokensreasoning)
1311
- [gen_ai.operation.name](#gen_aioperationname)
1412
- [gen_ai.operation.type](#gen_aioperationtype)
1513
- [gen_ai.pipeline.name](#gen_aipipelinename)
@@ -96,17 +94,6 @@ The cost of tokens used to process the AI input (prompt) in USD (without cached
9694
| Exists in OpenTelemetry | No |
9795
| Example | `123.45` |
9896

99-
### gen_ai.cost.input_tokens.cached
100-
101-
The cost of cached tokens used to process the AI input (prompt) in USD.
102-
103-
| Property | Value |
104-
| --- | --- |
105-
| Type | `double` |
106-
| Has PII | false |
107-
| Exists in OpenTelemetry | No |
108-
| Example | `123.45` |
109-
11097
### gen_ai.cost.output_tokens
11198

11299
The cost of tokens used for creating the AI output in USD (without reasoning tokens).
@@ -118,17 +105,6 @@ The cost of tokens used for creating the AI output in USD (without reasoning tok
118105
| Exists in OpenTelemetry | No |
119106
| Example | `123.45` |
120107

121-
### gen_ai.cost.output_tokens.reasoning
122-
123-
The cost of tokens used for reasoning to create the AI output in USD.
124-
125-
| Property | Value |
126-
| --- | --- |
127-
| Type | `double` |
128-
| Has PII | false |
129-
| Exists in OpenTelemetry | No |
130-
| Example | `123.45` |
131-
132108
### gen_ai.operation.name
133109

134110
The name of the operation being performed.

javascript/sentry-conventions/src/attributes.ts

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,26 +2081,6 @@ export const GEN_AI_COST_INPUT_TOKENS = 'gen_ai.cost.input_tokens';
20812081
*/
20822082
export type GEN_AI_COST_INPUT_TOKENS_TYPE = number;
20832083

2084-
// Path: model/attributes/gen_ai/gen_ai__cost__input_tokens__cached.json
2085-
2086-
/**
2087-
* The cost of cached tokens used to process the AI input (prompt) in USD. `gen_ai.cost.input_tokens.cached`
2088-
*
2089-
* Attribute Value Type: `number` {@link GEN_AI_COST_INPUT_TOKENS_CACHED_TYPE}
2090-
*
2091-
* Contains PII: false
2092-
*
2093-
* Attribute defined in OTEL: No
2094-
*
2095-
* @example 123.45
2096-
*/
2097-
export const GEN_AI_COST_INPUT_TOKENS_CACHED = 'gen_ai.cost.input_tokens.cached';
2098-
2099-
/**
2100-
* Type for {@link GEN_AI_COST_INPUT_TOKENS_CACHED} gen_ai.cost.input_tokens.cached
2101-
*/
2102-
export type GEN_AI_COST_INPUT_TOKENS_CACHED_TYPE = number;
2103-
21042084
// Path: model/attributes/gen_ai/gen_ai__cost__output_tokens.json
21052085

21062086
/**
@@ -2121,26 +2101,6 @@ export const GEN_AI_COST_OUTPUT_TOKENS = 'gen_ai.cost.output_tokens';
21212101
*/
21222102
export type GEN_AI_COST_OUTPUT_TOKENS_TYPE = number;
21232103

2124-
// Path: model/attributes/gen_ai/gen_ai__cost__output_tokens__reasoning.json
2125-
2126-
/**
2127-
* The cost of tokens used for reasoning to create the AI output in USD. `gen_ai.cost.output_tokens.reasoning`
2128-
*
2129-
* Attribute Value Type: `number` {@link GEN_AI_COST_OUTPUT_TOKENS_REASONING_TYPE}
2130-
*
2131-
* Contains PII: false
2132-
*
2133-
* Attribute defined in OTEL: No
2134-
*
2135-
* @example 123.45
2136-
*/
2137-
export const GEN_AI_COST_OUTPUT_TOKENS_REASONING = 'gen_ai.cost.output_tokens.reasoning';
2138-
2139-
/**
2140-
* Type for {@link GEN_AI_COST_OUTPUT_TOKENS_REASONING} gen_ai.cost.output_tokens.reasoning
2141-
*/
2142-
export type GEN_AI_COST_OUTPUT_TOKENS_REASONING_TYPE = number;
2143-
21442104
// Path: model/attributes/gen_ai/gen_ai__operation__name.json
21452105

21462106
/**
@@ -6610,9 +6570,7 @@ export type Attributes = {
66106570
[GEN_AI_ASSISTANT_MESSAGE]?: GEN_AI_ASSISTANT_MESSAGE_TYPE;
66116571
[GEN_AI_CHOICE]?: GEN_AI_CHOICE_TYPE;
66126572
[GEN_AI_COST_INPUT_TOKENS]?: GEN_AI_COST_INPUT_TOKENS_TYPE;
6613-
[GEN_AI_COST_INPUT_TOKENS_CACHED]?: GEN_AI_COST_INPUT_TOKENS_CACHED_TYPE;
66146573
[GEN_AI_COST_OUTPUT_TOKENS]?: GEN_AI_COST_OUTPUT_TOKENS_TYPE;
6615-
[GEN_AI_COST_OUTPUT_TOKENS_REASONING]?: GEN_AI_COST_OUTPUT_TOKENS_REASONING_TYPE;
66166574
[GEN_AI_OPERATION_NAME]?: GEN_AI_OPERATION_NAME_TYPE;
66176575
[GEN_AI_OPERATION_TYPE]?: GEN_AI_OPERATION_TYPE_TYPE;
66186576
[GEN_AI_PIPELINE_NAME]?: GEN_AI_PIPELINE_NAME_TYPE;
@@ -6887,9 +6845,7 @@ export type FullAttributes = {
68876845
[GEN_AI_ASSISTANT_MESSAGE]?: GEN_AI_ASSISTANT_MESSAGE_TYPE;
68886846
[GEN_AI_CHOICE]?: GEN_AI_CHOICE_TYPE;
68896847
[GEN_AI_COST_INPUT_TOKENS]?: GEN_AI_COST_INPUT_TOKENS_TYPE;
6890-
[GEN_AI_COST_INPUT_TOKENS_CACHED]?: GEN_AI_COST_INPUT_TOKENS_CACHED_TYPE;
68916848
[GEN_AI_COST_OUTPUT_TOKENS]?: GEN_AI_COST_OUTPUT_TOKENS_TYPE;
6892-
[GEN_AI_COST_OUTPUT_TOKENS_REASONING]?: GEN_AI_COST_OUTPUT_TOKENS_REASONING_TYPE;
68936849
[GEN_AI_OPERATION_NAME]?: GEN_AI_OPERATION_NAME_TYPE;
68946850
[GEN_AI_OPERATION_TYPE]?: GEN_AI_OPERATION_TYPE_TYPE;
68956851
[GEN_AI_PIPELINE_NAME]?: GEN_AI_PIPELINE_NAME_TYPE;

model/attributes/gen_ai/gen_ai__cost__input_tokens__cached.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

model/attributes/gen_ai/gen_ai__cost__output_tokens__reasoning.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)