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.
Namespace
GoogleCloudGoogle.Cloud.DiagnosticsCommonAssembly
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 |