in sdk/src/Core/AWSXRayRecorderImpl.cs [414:440]
public void AddHttpInformation(string key, object value)
{
if (IsTracingDisabled())
{
_logger.DebugFormat("X-Ray tracing is disabled, do not add http information.");
return;
}
if (string.IsNullOrEmpty(key))
{
throw new ArgumentException("Key cannot be null or empty", nameof(key));
}
if (value == null)
{
throw new ArgumentNullException(nameof(value));
}
try
{
TraceContext.GetEntity().Http[key] = value;
}
catch (EntityNotAvailableException e)
{
HandleEntityNotAvailableException(e, "Failed to add http because segment is not available in trace context.");
}
}