REST Resource: projects.locations.traceScopes

Resource: TraceScope

A trace scope is a collection of resources whose traces are queried together.

JSON representation
{
 "name": string,
 "resourceNames": [
 string
 ],
 "description": string,
 "createTime": string,
 "updateTime": string
}
Fields
name

string

Identifier. The resource name of the trace scope.

For example:

projects/my-project/locations/global/traceScopes/my-trace-scope
resourceNames[]

string

Required. Names of the projects that are included in this trace scope.

  • projects/[PROJECT_ID]

A trace scope can include a maximum of 20 projects.

description

string

Optional. Describes this trace scope.

The maximum length of the description is 8000 characters.

createTime

string (Timestamp format)

Output only. The creation timestamp of the trace scope.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014年10月02日T15:01:23Z", "2014年10月02日T15:01:23.045123456Z" or "2014年10月02日T15:01:23+05:30".

updateTime

string (Timestamp format)

Output only. The last update timestamp of the trace scope.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014年10月02日T15:01:23Z", "2014年10月02日T15:01:23.045123456Z" or "2014年10月02日T15:01:23+05:30".

Methods

create

Create a new TraceScope.

delete

Delete a TraceScope.

get

Get TraceScope resource.

list

List TraceScopes of a project in a particular location.

patch

Update a TraceScope.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年08月27日 UTC.