File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Serilog.Sinks.Network.Test Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public class JsonFormatter
17
17
{
18
18
private static LoggerAndSocket ConfigureTestLogger (
19
19
ITextFormatter ? formatter = null ,
20
- ILogEventEnricher [ ] enrichers = null
20
+ ILogEventEnricher [ ] ? enrichers = null
21
21
)
22
22
{
23
23
var socket = new Socket ( AddressFamily . InterNetwork , SocketType . Stream , ProtocolType . Tcp ) ;
@@ -79,7 +79,7 @@ public async Task IncludesCurrentActivityTraceAndSpanIds()
79
79
80
80
var receivedData = await ServerPoller . PollForReceivedData ( fixture . Socket ) ;
81
81
82
- receivedData . Should ( ) . Contain ( $ "\" traceId\" :\" { activity . TraceId } \" ") ;
82
+ receivedData . Should ( ) . Contain ( $ "\" traceId\" :\" { activity ! . TraceId } \" ") ;
83
83
receivedData . Should ( ) . Contain ( $ "\" spanId\" :\" { activity . SpanId } \" ") ;
84
84
}
85
85
@@ -119,7 +119,7 @@ public async Task WritesTraceAndSpanIdsBeforeDuplicatePropertiesFromEnrichers()
119
119
120
120
var receivedData = await ServerPoller . PollForReceivedData ( fixture . Socket ) ;
121
121
122
- var indexOfTraceId = receivedData . IndexOf ( $ "\" traceId\" :\" { activity . TraceId } \" ") ;
122
+ var indexOfTraceId = receivedData . IndexOf ( $ "\" traceId\" :\" { activity ! . TraceId } \" ") ;
123
123
var indexOfTraceIdFromEnricher = receivedData . IndexOf ( "\" traceId\" :\" traceId-from-enricher\" " ) ;
124
124
indexOfTraceId . Should ( ) . BePositive ( ) . And . BeLessThan ( indexOfTraceIdFromEnricher ) ;
125
125
@@ -139,4 +139,4 @@ private static ActivityListener CreateAndAddActivityListener(string sourceName)
139
139
return activityListener ;
140
140
}
141
141
}
142
- }
142
+ }
You can’t perform that action at this time.
0 commit comments