You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am tracing the logs from .NET web form client to WCF service with trace of MSSQL queries.
Tracing header is passed from call to WCF service was able to traced and linked parent segment in XRAY.
However, wasn't able to add sql trace to the XRay logs with the below error
"Failed to start subsegment because the parent segment is not available"
"Failed to set namespace because of subsegment is not available"
"Failed to add sql information because segment is not available in trace context."
"Entity doesn't exist in HTTPContext"
Hi,
I am tracing the logs from .NET web form client to WCF service with trace of MSSQL queries.
Tracing header is passed from call to WCF service was able to traced and linked parent segment in XRAY.
However, wasn't able to add sql trace to the XRay logs with the below error
"Failed to start subsegment because the parent segment is not available"
"Failed to set namespace because of subsegment is not available"
"Failed to add sql information because segment is not available in trace context."
"Entity doesn't exist in HTTPContext"
Done the below to add tracing to WCF calls:
object IClientMessageInspector.BeforeSendRequest(ref Message request, IClientChannel channel)
{
AWSXRayRecorder.Instance.BeginSubsegment(request.Headers.Action);
}
void IClientMessageInspector.AfterReceiveReply(ref Message reply, object correlationState)
{
AWSXRayRecorder.Instance.EndSubsegment();
}
The text was updated successfully, but these errors were encountered: