Add support for Context inspection
@@ -500,6 +500,10 @@ namespace MAT_NS_BEGIN
LOG_TRACE("SetContext(\"%s\", ..., %u)", name.c_str(), piiKind);
EventProperty prop(value, piiKind);
m_context.SetCustomField(name, prop);
+ if (m_dataInspector)
+ {
+ m_dataInspector->InspectSemanticContext(name, value, /*isGlobalContext: */ true, std::string{});
+ }
return STATUS_SUCCESS;
}
@@ -570,6 +574,10 @@ namespace MAT_NS_BEGIN
LOG_INFO("SetContext");
EventProperty prop(value, piiKind);
m_context.SetCustomField(name, prop);
+ if (m_dataInspector)
+ {
+ m_dataInspector->InspectSemanticContext(name, value, /*isGlobalContext:*/ true, std::string{});
+ }
return STATUS_SUCCESS;
}
