public string TraceGoogleCloudProjectId { get; set; }
The ID of the Google Cloud Project where trace data is being written to Google Cloud Trace.
Optional. Set this property to enable Google Cloud Trace and Logging correlation.
This property has no effect on where log entries are written to.
It also has no effect on whether trace information is actually exported to Google Cloud Trace or to which Google Cloud Project traces are exported to.
When set, this property informs the Console Logger to include trace context information (if any) on the log entries, assuming the trace information is being stored on the specified Google Cloud Project.
Note that when running your code in Google Cloud, for instance in Google Cloud Run, trace information is automatically collected and exported by the runtime.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["The latest version of the `GoogleCloudConsoleFormatterOptions` class is 1.4.0, and it is part of the `Google.Cloud.Logging.Console` namespace, with previous versions going back to 1.0.0."],["`GoogleCloudConsoleFormatterOptions` inherits from `ConsoleFormatterOptions`, providing options for the `GoogleCloudConsoleFormatter` and includes members such as `IncludeScopes`, `TimestampFormat`, and `UseUtcTimestamp`."],["The `TraceGoogleCloudProjectId` property allows correlation between Google Cloud Trace and Logging by specifying the Google Cloud Project ID where trace data is stored, but does not affect where log entries are written."],["The `GoogleCloudConsoleFormatterOptions` class is located within the `Google.Cloud.Logging.Console.dll` assembly and is used to configure the console formatter."]]],[]]