CloudTrace
import { CloudTrace } from "https://googleapis.deno.dev/v1/cloudtrace:v2.ts";
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.
§Methods
Batch writes new spans to new or existing traces. You cannot update existing spans.
Required. The name of the project where the spans belong. The format is projects/[PROJECT_ID]
.
Creates a new span.
Required. The resource name of the span in the following format: * projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
[TRACE_ID]
is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. It should not be zero. [SPAN_ID]
is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. It should not be zero. .