Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/http/HttpResponseDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ namespace MAT_NS_BEGIN {
DebugEvent evt;
evt.type = DebugEventType::EVT_HTTP_OK;
evt.param1 = response.GetStatusCode();
evt.param2 = ctx->recordIdsAndTenantIds.size();
evt.data = static_cast<void *>(request.GetBody().data());
evt.size = request.GetBody().size();
DispatchEvent(evt);
Expand All @@ -112,6 +113,7 @@ namespace MAT_NS_BEGIN {
// This is to be addressed with ETW trace API that can send
// a detailed error context to ETW provider.
evt.param1 = response.GetStatusCode();
evt.param2 = ctx->recordIdsAndTenantIds.size();
evt.data = static_cast<void *>(request.GetBody().data());
evt.size = request.GetBody().size();
DispatchEvent(evt);
Expand All @@ -127,6 +129,7 @@ namespace MAT_NS_BEGIN {
DebugEvent evt;
evt.type = DebugEventType::EVT_HTTP_FAILURE;
evt.param1 = 0; // response.GetStatusCode();
evt.param2 = ctx->recordIdsAndTenantIds.size();
DispatchEvent(evt);
}
ctx->httpResponse = nullptr;
Expand All @@ -144,6 +147,7 @@ namespace MAT_NS_BEGIN {
DebugEvent evt;
evt.type = DebugEventType::EVT_HTTP_FAILURE;
evt.param1 = response.GetStatusCode();
evt.param2 = ctx->recordIdsAndTenantIds.size();
DispatchEvent(evt);
}
temporaryServerFailure(ctx);
Expand All @@ -157,6 +161,7 @@ namespace MAT_NS_BEGIN {
DebugEvent evt;
evt.type = DebugEventType::EVT_HTTP_FAILURE;
evt.param1 = response.GetStatusCode();
evt.param2 = ctx->recordIdsAndTenantIds.size();
DispatchEvent(evt);
}
temporaryNetworkFailure(ctx);
Expand Down Expand Up @@ -253,4 +258,3 @@ namespace MAT_NS_BEGIN {
}

} MAT_NS_END

Loading