From dfc53c427b7fd8cd0e94d78901a027e16c18e4de Mon Sep 17 00:00:00 2001 From: dudik Date: Wed, 17 Jan 2024 17:42:24 +0100 Subject: [PATCH] Fix build error --- .../Debugger/Symbols/SymbolBatchUploadApi.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tracer/src/Datadog.Trace/Debugger/Symbols/SymbolBatchUploadApi.cs b/tracer/src/Datadog.Trace/Debugger/Symbols/SymbolBatchUploadApi.cs index 7d603c49de9f..7de39032689f 100644 --- a/tracer/src/Datadog.Trace/Debugger/Symbols/SymbolBatchUploadApi.cs +++ b/tracer/src/Datadog.Trace/Debugger/Symbols/SymbolBatchUploadApi.cs @@ -90,9 +90,11 @@ public async Task SendBatchAsync(ArraySegment symbols) while (retries < maxRetries) { - using var response = await multipartRequest.PostAsync( - new MultipartFormItem("file", MimeTypes.Json, "file.json", symbols), - new MultipartFormItem("event", MimeTypes.Json, "event.json", _eventMetadata)). + using var response = await multipartRequest.PostAsync(new MultipartFormItem[] + { + new("file", MimeTypes.Json, "file.json", symbols), + new("event", MimeTypes.Json, "event.json", _eventMetadata) + }). ConfigureAwait(false); if (response.StatusCode is >= 200 and <= 299)