Skip to content

Commit 6568301

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add llm_spans and deprecate llm_observability for Hourly Usage Attribution and Monthly Usage Attribution (#3166)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 6589f1b commit 6568301

6 files changed

Lines changed: 49 additions & 3 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4315,6 +4315,7 @@ components:
43154315
- invocations_usage
43164316
- lambda_traced_invocations_usage
43174317
- llm_observability_usage
4318+
- llm_spans_usage
43184319
- logs_indexed_15day_usage
43194320
- logs_indexed_180day_usage
43204321
- logs_indexed_1day_usage
@@ -4396,6 +4397,7 @@ components:
43964397
- INVOCATIONS_USAGE
43974398
- LAMBDA_TRACED_INVOCATIONS_USAGE
43984399
- LLM_OBSERVABILITY_USAGE
4400+
- LLM_SPANS_USAGE
43994401
- LOGS_INDEXED_15DAY_USAGE
44004402
- LOGS_INDEXED_180DAY_USAGE
44014403
- LOGS_INDEXED_1DAY_USAGE
@@ -8752,6 +8754,8 @@ components:
87528754
- lambda_traced_invocations_percentage
87538755
- llm_observability_usage
87548756
- llm_observability_percentage
8757+
- llm_spans_usage
8758+
- llm_spans_percentage
87558759
- mobile_app_testing_percentage
87568760
- mobile_app_testing_usage
87578761
- ndm_netflow_usage
@@ -8909,6 +8913,8 @@ components:
89098913
- LAMBDA_TRACED_INVOCATIONS_PERCENTAGE
89108914
- LLM_OBSERVABILITY_USAGE
89118915
- LLM_OBSERVABILITY_PERCENTAGE
8916+
- LLM_SPANS_USAGE
8917+
- LLM_SPANS_PERCENTAGE
89128918
- MOBILE_APP_TESTING_USAGE
89138919
- MOBILE_APP_TESTING_PERCENTAGE
89148920
- NDM_NETFLOW_USAGE
@@ -9329,6 +9335,14 @@ components:
93299335
description: The LLM Observability usage by tag(s).
93309336
format: double
93319337
type: number
9338+
llm_spans_percentage:
9339+
description: The percentage of LLM Spans usage by tag(s).
9340+
format: double
9341+
type: number
9342+
llm_spans_usage:
9343+
description: The LLM Spans usage by tag(s).
9344+
format: double
9345+
type: number
93329346
logs_indexed_15day_percentage:
93339347
description: The percentage of Indexed Logs (15-day Retention) usage by
93349348
tag(s).
@@ -36599,7 +36613,10 @@ paths:
3659936613
code example:\n\n```\nresponse := GetHourlyUsageAttribution(start_month)\ncursor
3660036614
:= response.metadata.pagination.next_record_id\nWHILE cursor != null BEGIN\n
3660136615
\ sleep(5 seconds) # Avoid running into rate limit\n response := GetHourlyUsageAttribution(start_month,
36602-
next_record_id=cursor)\n cursor := response.metadata.pagination.next_record_id\nEND\n```"
36616+
next_record_id=cursor)\n cursor := response.metadata.pagination.next_record_id\nEND\n```\nThe
36617+
following values have been **deprecated**:\n `estimated_indexed_spans_usage`,
36618+
`estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`, `estimated_ingested_spans_percentage`,
36619+
`llm_observability_usage`, `llm_observability_percentage`."
3660336620
operationId: GetHourlyUsageAttribution
3660436621
parameters:
3660536622
- description: 'Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]`
@@ -37178,7 +37195,7 @@ paths:
3717837195
The following values have been **deprecated**:
3717937196

3718037197
`estimated_indexed_spans_usage`, `estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`,
37181-
`estimated_ingested_spans_percentage`.'
37198+
`estimated_ingested_spans_percentage`, `llm_observability_usage`, `llm_observability_percentage`.'
3718237199
in: query
3718337200
name: fields
3718437201
required: true

services/usage_metering/src/v1/UsageMeteringApi.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4835,7 +4835,7 @@ export interface UsageMeteringApiGetMonthlyUsageAttributionRequest {
48354835
/**
48364836
* Comma-separated list of usage types to return, or `*` for all usage types.
48374837
* The following values have been **deprecated**:
4838-
* `estimated_indexed_spans_usage`, `estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`, `estimated_ingested_spans_percentage`.
4838+
* `estimated_indexed_spans_usage`, `estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`, `estimated_ingested_spans_percentage`, `llm_observability_usage`, `llm_observability_percentage`.
48394839
* @type MonthlyUsageAttributionSupportedMetrics
48404840
*/
48414841
fields: MonthlyUsageAttributionSupportedMetrics;
@@ -5378,6 +5378,8 @@ export class UsageMeteringApi {
53785378
* cursor := response.metadata.pagination.next_record_id
53795379
* END
53805380
* ```
5381+
* The following values have been **deprecated**:
5382+
* `estimated_indexed_spans_usage`, `estimated_indexed_spans_percentage`, `estimated_ingested_spans_usage`, `estimated_ingested_spans_percentage`, `llm_observability_usage`, `llm_observability_percentage`.
53815383
* @param param The request object
53825384
*/
53835385
public getHourlyUsageAttribution(

services/usage_metering/src/v1/models/HourlyUsageAttributionUsageType.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export type HourlyUsageAttributionUsageType =
4747
| typeof INVOCATIONS_USAGE
4848
| typeof LAMBDA_TRACED_INVOCATIONS_USAGE
4949
| typeof LLM_OBSERVABILITY_USAGE
50+
| typeof LLM_SPANS_USAGE
5051
| typeof LOGS_INDEXED_15DAY_USAGE
5152
| typeof LOGS_INDEXED_180DAY_USAGE
5253
| typeof LOGS_INDEXED_1DAY_USAGE
@@ -133,6 +134,7 @@ export const INVOCATIONS_USAGE = "invocations_usage";
133134
export const LAMBDA_TRACED_INVOCATIONS_USAGE =
134135
"lambda_traced_invocations_usage";
135136
export const LLM_OBSERVABILITY_USAGE = "llm_observability_usage";
137+
export const LLM_SPANS_USAGE = "llm_spans_usage";
136138
export const LOGS_INDEXED_15DAY_USAGE = "logs_indexed_15day_usage";
137139
export const LOGS_INDEXED_180DAY_USAGE = "logs_indexed_180day_usage";
138140
export const LOGS_INDEXED_1DAY_USAGE = "logs_indexed_1day_usage";

services/usage_metering/src/v1/models/MonthlyUsageAttributionSupportedMetrics.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ export type MonthlyUsageAttributionSupportedMetrics =
7272
| typeof LAMBDA_TRACED_INVOCATIONS_PERCENTAGE
7373
| typeof LLM_OBSERVABILITY_USAGE
7474
| typeof LLM_OBSERVABILITY_PERCENTAGE
75+
| typeof LLM_SPANS_USAGE
76+
| typeof LLM_SPANS_PERCENTAGE
7577
| typeof MOBILE_APP_TESTING_USAGE
7678
| typeof MOBILE_APP_TESTING_PERCENTAGE
7779
| typeof NDM_NETFLOW_USAGE
@@ -241,6 +243,8 @@ export const LAMBDA_TRACED_INVOCATIONS_PERCENTAGE =
241243
"lambda_traced_invocations_percentage";
242244
export const LLM_OBSERVABILITY_USAGE = "llm_observability_usage";
243245
export const LLM_OBSERVABILITY_PERCENTAGE = "llm_observability_percentage";
246+
export const LLM_SPANS_USAGE = "llm_spans_usage";
247+
export const LLM_SPANS_PERCENTAGE = "llm_spans_percentage";
244248
export const MOBILE_APP_TESTING_USAGE = "mobile_app_testing_percentage";
245249
export const MOBILE_APP_TESTING_PERCENTAGE = "mobile_app_testing_usage";
246250
export const NDM_NETFLOW_USAGE = "ndm_netflow_usage";

services/usage_metering/src/v1/models/MonthlyUsageAttributionValues.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,14 @@ export class MonthlyUsageAttributionValues {
317317
* The LLM Observability usage by tag(s).
318318
*/
319319
"llmObservabilityUsage"?: number;
320+
/**
321+
* The percentage of LLM Spans usage by tag(s).
322+
*/
323+
"llmSpansPercentage"?: number;
324+
/**
325+
* The LLM Spans usage by tag(s).
326+
*/
327+
"llmSpansUsage"?: number;
320328
/**
321329
* The percentage of Indexed Logs (15-day Retention) usage by tag(s).
322330
*/
@@ -1018,6 +1026,16 @@ export class MonthlyUsageAttributionValues {
10181026
type: "number",
10191027
format: "double",
10201028
},
1029+
llmSpansPercentage: {
1030+
baseName: "llm_spans_percentage",
1031+
type: "number",
1032+
format: "double",
1033+
},
1034+
llmSpansUsage: {
1035+
baseName: "llm_spans_usage",
1036+
type: "number",
1037+
format: "double",
1038+
},
10211039
logsIndexed15DayPercentage: {
10221040
baseName: "logs_indexed_15day_percentage",
10231041
type: "number",

services/usage_metering/src/v1/models/TypingInfo.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export const TypingInfo: ModelTypingInfo = {
140140
"invocations_usage",
141141
"lambda_traced_invocations_usage",
142142
"llm_observability_usage",
143+
"llm_spans_usage",
143144
"logs_indexed_15day_usage",
144145
"logs_indexed_180day_usage",
145146
"logs_indexed_1day_usage",
@@ -247,6 +248,8 @@ export const TypingInfo: ModelTypingInfo = {
247248
"lambda_traced_invocations_percentage",
248249
"llm_observability_usage",
249250
"llm_observability_percentage",
251+
"llm_spans_usage",
252+
"llm_spans_percentage",
250253
"mobile_app_testing_percentage",
251254
"mobile_app_testing_usage",
252255
"ndm_netflow_usage",

0 commit comments

Comments
 (0)