Class TraceTarget (4.3.1)

public sealed class TraceTarget

Represents the location traces will be sent to. The Trace API only supports projects.

Inheritance

Object > TraceTarget

Namespace

Google.Cloud.Diagnostics.Common

Assembly

Google.Cloud.Diagnostics.Common.dll

Properties

ProjectId

public string ProjectId { get; }

The Google Cloud Platform project Id.

Property Value
TypeDescription
String

Methods

ForProject(String)

public static TraceTarget ForProject(string projectId)

Creates a TraceTarget instance for sending trace entries to a GCP project.

Parameter
NameDescription
projectIdString
Returns
TypeDescription
TraceTarget

GetFullTraceName(String)

public string GetFullTraceName(string traceId)
Parameter
NameDescription
traceIdString

The id of the trace.

Returns
TypeDescription
String