Skip to content

Commit f957013

Browse files
author
Kantorová Michaela
committed
removed redundant metadata property
1 parent d93fa3a commit f957013

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

src/TeaPie/Logging/RequestLogFileEntry.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ internal class RequestLogFileEntry
1616
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
1717
public AuthInfo? Authentication { get; set; }
1818
public List<string> Errors { get; set; } = [];
19-
public Dictionary<string, object> Metadata { get; set; } = [];
2019
}
2120

2221
internal class RequestInfo

src/TeaPie/Logging/RequestsLoggingHandler.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ private async Task<RequestLogFileEntry> GetOrCreateLogEntryAsync(HttpRequestMess
5454
StartTime = DateTime.UtcNow,
5555
Request = await CreateRequestInfoAsync(requestContext, request),
5656
Authentication = CreateAuthInfo(),
57-
Metadata = CreateMetadata(requestContext),
5857
Retries = new RetryInfo { AttemptCount = 0, Attempts = [] },
5958
Errors = []
6059
};
@@ -159,15 +158,6 @@ private static async Task<ResponseInfo> CreateResponseInfoAsync(HttpResponseMess
159158
};
160159
}
161160

162-
private static Dictionary<string, object> CreateMetadata(RequestExecutionContext requestContext)
163-
{
164-
return new Dictionary<string, object>
165-
{
166-
["testCaseId"] = requestContext.TestCaseExecutionContext?.Id.ToString() ?? "none",
167-
["hasResiliencePipeline"] = requestContext.ResiliencePipeline != null
168-
};
169-
}
170-
171161
private static Dictionary<string, string> ProcessHeaders(HttpHeaders headers)
172162
{
173163
return headers.ToDictionary(h => h.Key, h => string.Join(", ", h.Value));

0 commit comments

Comments
 (0)