public sealed class TraceTarget
Represents the location traces will be sent to. The Trace API only supports projects.
Namespace
Google.Cloud.Diagnostics.CommonAssembly
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)
Gets the full trace name. See: https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry
Parameter | |
---|---|
Name | Description |
traceId | String The id of the trace. |
Returns | |
---|---|
Type | Description |
String |