Google.Cloud.Diagnostics.Common - Class TraceTarget (5.2.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

Google.Cloud.Diagnostics.Common

Assembly

Google.Cloud.Diagnostics.Common.dll

Properties

ProjectId

public string ProjectId { get; }

The Google Cloud Platform project Id.

Property Value
Type Description
string

Methods

ForProject(string)

public static TraceTarget ForProject(string projectId)

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

Parameter
Name Description
projectId string
Returns
Type Description
TraceTarget

GetFullTraceName(string)

public string GetFullTraceName(string traceId)
Parameter
Name Description
traceId string

The id of the trace.

Returns
Type Description
string