Skip to content

Commit fcc24b0

Browse files
fix(cloudtrace): update the API
#### cloudtrace:v1 The following keys were changed: - resources.projects.methods.patchTraces.description #### cloudtrace:v2 The following keys were changed: - resources.projects.resources.traces.methods.batchWrite.description - resources.projects.resources.traces.resources.spans.methods.createSpan.description
1 parent 199daf2 commit fcc24b0

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

‎discovery/cloudtrace-v1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"projects": {
115115
"methods": {
116116
"patchTraces": {
117-
"description": "Sends new traces to Cloud Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created.",
117+
"description": "Sends trace spans to Cloud Trace. Spans cannot be updated. If the trace ID and span ID already exist, an additional copy of the span will be stored.",
118118
"flatPath": "v1/projects/{projectId}/traces",
119119
"httpMethod": "PATCH",
120120
"id": "cloudtrace.projects.patchTraces",
@@ -257,7 +257,7 @@
257257
}
258258
}
259259
},
260-
"revision": "20240816",
260+
"revision": "20250411",
261261
"rootUrl": "https://cloudtrace.googleapis.com/",
262262
"schemas": {
263263
"Empty": {

‎discovery/cloudtrace-v2.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"traces": {
114114
"methods": {
115115
"batchWrite": {
116-
"description": "Batch writes new spans to new or existing traces. You cannot update existing spans.",
116+
"description": "Batch writes new spans to new or existing traces. You cannot update existing spans. If a span ID already exists, an additional copy of the span will be stored.",
117117
"flatPath": "v2/projects/{projectsId}/traces:batchWrite",
118118
"httpMethod": "POST",
119119
"id": "cloudtrace.projects.traces.batchWrite",
@@ -146,7 +146,7 @@
146146
"spans": {
147147
"methods": {
148148
"createSpan": {
149-
"description": "Creates a new span.",
149+
"description": "Creates a new span. If a span ID already exists, an additional copy of the span will be stored.",
150150
"flatPath": "v2/projects/{projectsId}/traces/{tracesId}/spans/{spansId}",
151151
"httpMethod": "POST",
152152
"id": "cloudtrace.projects.traces.spans.createSpan",
@@ -181,7 +181,7 @@
181181
}
182182
}
183183
},
184-
"revision": "20230608",
184+
"revision": "20250411",
185185
"rootUrl": "https://cloudtrace.googleapis.com/",
186186
"schemas": {
187187
"Annotation": {

‎src/apis/cloudtrace/v1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export namespace cloudtrace_v1 {
210210
}
211211

212212
/**
213-
* Sends new traces to Cloud Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created.
213+
* Sends trace spans to Cloud Trace. Spans cannot be updated. If the trace ID and span ID already exist, an additional copy of the span will be stored.
214214
*
215215
* @param params - Parameters for request
216216
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.

‎src/apis/cloudtrace/v2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ export namespace cloudtrace_v2 {
451451
}
452452

453453
/**
454-
* Batch writes new spans to new or existing traces. You cannot update existing spans.
454+
* Batch writes new spans to new or existing traces. You cannot update existing spans. If a span ID already exists, an additional copy of the span will be stored.
455455
*
456456
* @param params - Parameters for request
457457
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -559,7 +559,7 @@ export namespace cloudtrace_v2 {
559559
}
560560

561561
/**
562-
* Creates a new span.
562+
* Creates a new span. If a span ID already exists, an additional copy of the span will be stored.
563563
*
564564
* @param params - Parameters for request
565565
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.

0 commit comments

Comments
 (0)