File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Src/StackifyLib/Internal/Logs Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -194,13 +194,12 @@ public void QueueLogMessage(Models.LogMsg msg)
194194 var s = q . Where ( assembly => assembly . FullName . Contains ( "Stackify.Agent" ) ) ;
195195 var middleware = s . First ( ) ;
196196 var midTypes = middleware . GetTypes ( ) ;
197- var callContextType = midTypes . Where ( type => type . Name . Contains ( " StackifyCallContext") ) . First ( ) ;
198- var traceCtxType = midTypes . Where ( type => type . Name . Contains ( "TraceContext" ) ) . First ( ) ;
197+ var callContextType = middleware . GetType ( "Stackify.Agent.Threading. StackifyCallContext") ;
198+ var traceCtxType = middleware . GetType ( "Stackify.Agent.Tracing.ITraceContext" ) ;
199199 var traceContextProp = callContextType . GetProperty ( "TraceContext" ) ;
200200 var traceFields = traceContextProp . GetValue ( null ) ;
201201 if ( traceFields != null )
202202 {
203- //var tFields = traceCtxType.GetField("RequestId").GetValue(traceFields);
204203 msg . TransID = traceCtxType . GetProperty ( "RequestId" ) . GetValue ( traceFields ) . ToString ( ) ;
205204 }
206205 }
You can’t perform that action at this time.
0 commit comments