Google.Cloud.Diagnostics.Common - Class TraceTarget (5.1.0)

public sealed class TraceTarget

Reference documentation and code samples for the Google.Cloud.Diagnostics.Common class TraceTarget.

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

Inheritance

object > TraceTarget

Namespace

GoogleCloudGoogle.Cloud.DiagnosticsCommon

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