Cloud Trace API
Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other…
Developer tools#openapi#analytics#media
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenTelemetry.
Endpoints 2
projects.traces
- POSTBatch writes new spans to new or existing traces
/v2/:name/traces:batchWriteBatch 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.
projects.traces.spans
- POSTCreates a new span
/v2/:nameCreates a new span. If a span ID already exists, an additional copy of the span will be stored.
API details
- Base URL
https://cloudtrace.googleapis.com- Authentication
- OAuth 2.0 (authorization code flow) with 2 scopes
An API key in the key query parameter - Operations
- 2 operations on 2 pathsPOST 2
- Main resources
- projects.traces 1projects.traces.spans 1
- Response formats
application/json- Description format
- Google API Discovery, API version
v2 - Links
- Documentation · OpenAPI document
- Listed from
- Google API Discovery document (googleapis/discovery-artifact-manager) (Apache-2.0)
How to test the Cloud Trace API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Cloud Trace API collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 2 scopes. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Batch writes new spans to new or existing traces” (POST /v2/:name/traces:batchWrite), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Cloud Trace API?
Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other… It is listed under Developer tools and has 2 endpoints.
Who publishes the Cloud Trace API?
It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Cloud Trace API?
Requests go to https://cloudtrace.googleapis.com. Endpoint paths are added to this base URL.
How do I authenticate with the Cloud Trace API?
It accepts 2 methods: OAuth 2.0 (authorization code flow) with 2 scopes; an API key in the key query parameter.
How many endpoints does the Cloud Trace API have?
2 operations on 2 paths (2 POST). The largest groups are projects.traces, projects.traces.spans.
Is forking the Cloud Trace API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.