public virtual Task<Empty> PatchTraces(PatchTracesRequest request, ServerCallContext context)
Sends new traces to Stackdriver Trace or updates existing traces. If the ID
of a trace that you send matches that of an existing trace, any fields
in the existing trace and its spans are overwritten by the provided values,
and any new fields provided are merged with the existing trace data. If the
ID does not match, a new trace is created.
[[["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."],[[["\u003cp\u003eThis documentation covers the \u003ccode\u003eTraceService.TraceServiceBase\u003c/code\u003e class within the Google Cloud Trace v1 API for .NET, offering server-side implementation capabilities.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API documentation available is 3.4.0, with several previous versions ranging from 2.2.0 to 3.3.0 also documented.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTraceService.TraceServiceBase\u003c/code\u003e provides three main methods: \u003ccode\u003eGetTrace\u003c/code\u003e, \u003ccode\u003eListTraces\u003c/code\u003e, and \u003ccode\u003ePatchTraces\u003c/code\u003e, which allow retrieving a single trace, retrieving multiple traces based on filters, and sending or updating traces, respectively.\u003c/p\u003e\n"],["\u003cp\u003eEach of the three methods provided by the \u003ccode\u003eTraceService.TraceServiceBase\u003c/code\u003e class uses \u003ccode\u003eServerCallContext\u003c/code\u003e to manage the context of the server-side call and takes a specific request type, returning a task that encapsulates the response.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTraceService.TraceServiceBase\u003c/code\u003e class inherits from the base \u003ccode\u003eobject\u003c/code\u003e class, adding inherited members such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, \u003ccode\u003eMemberwiseClone\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Trace v1 API - Class TraceService.TraceServiceBase (3.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Trace.V1/latest/Google.Cloud.Trace.V1.TraceService.TraceServiceBase)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Trace.V1/3.3.0/Google.Cloud.Trace.V1.TraceService.TraceServiceBase)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Trace.V1/3.2.0/Google.Cloud.Trace.V1.TraceService.TraceServiceBase)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Trace.V1/3.1.0/Google.Cloud.Trace.V1.TraceService.TraceServiceBase)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Trace.V1/3.0.0/Google.Cloud.Trace.V1.TraceService.TraceServiceBase)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Trace.V1/2.3.0/Google.Cloud.Trace.V1.TraceService.TraceServiceBase)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Trace.V1/2.2.0/Google.Cloud.Trace.V1.TraceService.TraceServiceBase) \n\n [BindServiceMethod(typeof(TraceService), \"BindService\")]\n public abstract class TraceService.TraceServiceBase\n\nReference documentation and code samples for the Google Cloud Trace v1 API class TraceService.TraceServiceBase.\n\nBase class for server-side implementations of TraceService \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e TraceService.TraceServiceBase \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Trace.V1](/dotnet/docs/reference/Google.Cloud.Trace.V1/latest/Google.Cloud.Trace.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Trace.V1.dll\n\nMethods\n-------\n\n### GetTrace(GetTraceRequest, ServerCallContext)\n\n public virtual Task\u003cTrace\u003e GetTrace(GetTraceRequest request, ServerCallContext context)\n\nGets a single trace by its ID.\n\n### ListTraces(ListTracesRequest, ServerCallContext)\n\n public virtual Task\u003cListTracesResponse\u003e ListTraces(ListTracesRequest request, ServerCallContext context)\n\nReturns of a list of traces that match the specified filter conditions.\n\n### PatchTraces(PatchTracesRequest, ServerCallContext)\n\n public virtual Task\u003cEmpty\u003e PatchTraces(PatchTracesRequest request, ServerCallContext context)\n\nSends new traces to Stackdriver Trace or updates existing traces. If the ID\nof a trace that you send matches that of an existing trace, any fields\nin the existing trace and its spans are overwritten by the provided values,\nand any new fields provided are merged with the existing trace data. If the\nID does not match, a new trace is created."]]