public sealed class TraceTargetReference 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
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 |
stringThe id of the trace. |
| Returns | |
|---|---|
| Type | Description |
string |
|