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\u003eThe latest version available for \u003ccode\u003eTraceService\u003c/code\u003e is 3.4.0, and the page content focuses on version 2.2.0 of \u003ccode\u003eTraceService.TraceServiceBase\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTraceServiceBase\u003c/code\u003e is a base class for server-side implementations of \u003ccode\u003eTraceService\u003c/code\u003e, inheriting from the .NET \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTraceServiceBase\u003c/code\u003e provides three primary methods: \u003ccode\u003eGetTrace\u003c/code\u003e to retrieve a single trace by its ID, \u003ccode\u003eListTraces\u003c/code\u003e to list traces based on filter criteria, and \u003ccode\u003ePatchTraces\u003c/code\u003e to update or create traces.\u003c/p\u003e\n"],["\u003cp\u003eEach of these methods, \u003ccode\u003eGetTrace\u003c/code\u003e, \u003ccode\u003eListTraces\u003c/code\u003e, and \u003ccode\u003ePatchTraces\u003c/code\u003e, returns an asynchronous \u003ccode\u003eTask\u003c/code\u003e object, which includes the appropriate response type: \u003ccode\u003eTrace\u003c/code\u003e, \u003ccode\u003eListTracesResponse\u003c/code\u003e, and \u003ccode\u003eEmpty\u003c/code\u003e, respectively.\u003c/p\u003e\n"],["\u003cp\u003eAll of these methods take two parameters: \u003ccode\u003erequest\u003c/code\u003e, the data object relevant to the method, and \u003ccode\u003econtext\u003c/code\u003e, the \u003ccode\u003eServerCallContext\u003c/code\u003e, which is the context of the server-side call handler being invoked.\u003c/p\u003e\n"]]],[],null,[]]