Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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.

class CloudTrace {
constructor(client?: CredentialsClient, baseUrl?: string);
async projectsTracesBatchWrite(name: string, req: BatchWriteSpansRequest): Promise<Empty>;
async projectsTracesSpansCreateSpan(name: string, req: Span): Promise<Span>;
}

§Constructors

§
new CloudTrace(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
projectsTracesBatchWrite(name: string, req: BatchWriteSpansRequest): Promise<Empty>
[src]

Batch writes new spans to new or existing traces. You cannot update existing spans.

@param name

Required. The name of the project where the spans belong. The format is projects/[PROJECT_ID].

§
projectsTracesSpansCreateSpan(name: string, req: Span): Promise<Span>
[src]

Creates a new span.

@param name

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. .