public static void InjectTracing(this HttpHeaders httpHeaders, ITracer tracer, string httpMethod, string httpUrl) { if (tracer is null) { throw new ArgumentNullException(nameof(tracer)); } Dictionary <string, string> dictionary = tracer.InjectWithTags(httpMethod, httpUrl); foreach (var entry in dictionary) { httpHeaders.Add(entry.Key, entry.Value); } }