139 references to ActivityTrackingOptions
Microsoft.AspNetCore (6)
WebApplicationBuilder.cs (3)
322
ActivityTrackingOptions
.SpanId |
323
ActivityTrackingOptions
.TraceId |
324
ActivityTrackingOptions
.ParentId;
WebHost.cs (3)
198
options.ActivityTrackingOptions =
ActivityTrackingOptions
.SpanId
199
|
ActivityTrackingOptions
.TraceId
200
|
ActivityTrackingOptions
.ParentId;
Microsoft.Extensions.Hosting (3)
HostingHostBuilderExtensions.cs (3)
313
ActivityTrackingOptions
.SpanId |
314
ActivityTrackingOptions
.TraceId |
315
ActivityTrackingOptions
.ParentId;
Microsoft.Extensions.Logging (21)
LoggerFactory.cs (8)
87
const
ActivityTrackingOptions
ActivityTrackingOptionsMask = ~(
ActivityTrackingOptions
.SpanId |
ActivityTrackingOptions
.TraceId |
ActivityTrackingOptions
.ParentId |
88
ActivityTrackingOptions
.TraceFlags |
ActivityTrackingOptions
.TraceState |
ActivityTrackingOptions
.Tags
89
|
ActivityTrackingOptions
.Baggage);
LoggerFactoryOptions.cs (1)
22
public
ActivityTrackingOptions
ActivityTrackingOptions { get; set; }
LoggerFactoryScopeProvider.cs (12)
19
private readonly
ActivityTrackingOptions
_activityTrackingOption;
21
public LoggerFactoryScopeProvider(
ActivityTrackingOptions
activityTrackingOption) => _activityTrackingOption = activityTrackingOption;
35
if (_activityTrackingOption !=
ActivityTrackingOptions
.None)
52
if ((_activityTrackingOption &
ActivityTrackingOptions
.Tags) != 0
60
if ((_activityTrackingOption &
ActivityTrackingOptions
.Baggage) != 0)
137
public ActivityLogScope(Activity activity,
ActivityTrackingOptions
activityTrackingOption)
140
Debug.Assert(activityTrackingOption !=
ActivityTrackingOptions
.None);
143
if ((activityTrackingOption &
ActivityTrackingOptions
.SpanId) != 0)
148
if ((activityTrackingOption &
ActivityTrackingOptions
.TraceId) != 0)
153
if ((activityTrackingOption &
ActivityTrackingOptions
.ParentId) != 0)
158
if ((activityTrackingOption &
ActivityTrackingOptions
.TraceState) != 0)
163
if ((activityTrackingOption &
ActivityTrackingOptions
.TraceFlags) != 0)
Microsoft.Extensions.Telemetry (19)
Logging\ExtendedLoggerFactory.cs (8)
49
const
ActivityTrackingOptions
ActivityTrackingOptionsMask = ~(
ActivityTrackingOptions
.SpanId |
ActivityTrackingOptions
.TraceId |
ActivityTrackingOptions
.ParentId |
50
ActivityTrackingOptions
.TraceFlags |
ActivityTrackingOptions
.TraceState |
ActivityTrackingOptions
.Tags
51
|
ActivityTrackingOptions
.Baggage);
Logging\Import\LoggerFactoryScopeProvider.cs (11)
38
private readonly
ActivityTrackingOptions
_activityTrackingOption;
40
public LoggerFactoryScopeProvider(
ActivityTrackingOptions
activityTrackingOption) => _activityTrackingOption = activityTrackingOption;
54
if (_activityTrackingOption !=
ActivityTrackingOptions
.None)
71
if ((_activityTrackingOption &
ActivityTrackingOptions
.Tags) != 0
79
if ((_activityTrackingOption &
ActivityTrackingOptions
.Baggage) != 0)
156
public ActivityLogScope(Activity activity,
ActivityTrackingOptions
activityTrackingOption)
159
if ((activityTrackingOption &
ActivityTrackingOptions
.SpanId) != 0)
164
if ((activityTrackingOption &
ActivityTrackingOptions
.TraceId) != 0)
169
if ((activityTrackingOption &
ActivityTrackingOptions
.ParentId) != 0)
174
if ((activityTrackingOption &
ActivityTrackingOptions
.TraceState) != 0)
179
if ((activityTrackingOption &
ActivityTrackingOptions
.TraceFlags) != 0)
Microsoft.Extensions.Telemetry.Tests (90)
Logging\ExtendedLoggerFactoryTests.cs (90)
126
private static string GetActivityLogString(
ActivityTrackingOptions
options)
135
if ((options &
ActivityTrackingOptions
.SpanId) != 0)
140
if ((options &
ActivityTrackingOptions
.TraceId) != 0)
145
if ((options &
ActivityTrackingOptions
.ParentId) != 0)
150
if ((options &
ActivityTrackingOptions
.TraceState) != 0)
155
if ((options &
ActivityTrackingOptions
.TraceFlags) != 0)
164
[InlineData(
ActivityTrackingOptions
.SpanId)]
165
[InlineData(
ActivityTrackingOptions
.TraceId)]
166
[InlineData(
ActivityTrackingOptions
.ParentId)]
167
[InlineData(
ActivityTrackingOptions
.TraceState)]
168
[InlineData(
ActivityTrackingOptions
.TraceFlags)]
169
[InlineData(
ActivityTrackingOptions
.SpanId |
ActivityTrackingOptions
.TraceId)]
170
[InlineData(
ActivityTrackingOptions
.SpanId |
ActivityTrackingOptions
.ParentId)]
171
[InlineData(
ActivityTrackingOptions
.SpanId |
ActivityTrackingOptions
.TraceState)]
172
[InlineData(
ActivityTrackingOptions
.SpanId |
ActivityTrackingOptions
.TraceFlags)]
173
[InlineData(
ActivityTrackingOptions
.TraceId |
ActivityTrackingOptions
.ParentId)]
174
[InlineData(
ActivityTrackingOptions
.TraceId |
ActivityTrackingOptions
.TraceState)]
175
[InlineData(
ActivityTrackingOptions
.TraceId |
ActivityTrackingOptions
.TraceFlags)]
176
[InlineData(
ActivityTrackingOptions
.ParentId |
ActivityTrackingOptions
.TraceState)]
177
[InlineData(
ActivityTrackingOptions
.ParentId |
ActivityTrackingOptions
.TraceFlags)]
178
[InlineData(
ActivityTrackingOptions
.TraceState |
ActivityTrackingOptions
.TraceFlags)]
179
[InlineData(
ActivityTrackingOptions
.SpanId |
ActivityTrackingOptions
.TraceId |
ActivityTrackingOptions
.ParentId)]
180
[InlineData(
ActivityTrackingOptions
.SpanId |
ActivityTrackingOptions
.TraceId |
ActivityTrackingOptions
.TraceState)]
181
[InlineData(
ActivityTrackingOptions
.SpanId |
ActivityTrackingOptions
.TraceId |
ActivityTrackingOptions
.TraceFlags)]
182
[InlineData(
ActivityTrackingOptions
.SpanId |
ActivityTrackingOptions
.ParentId |
ActivityTrackingOptions
.TraceState)]
183
[InlineData(
ActivityTrackingOptions
.SpanId |
ActivityTrackingOptions
.ParentId |
ActivityTrackingOptions
.TraceFlags)]
184
[InlineData(
ActivityTrackingOptions
.SpanId |
ActivityTrackingOptions
.TraceState |
ActivityTrackingOptions
.TraceFlags)]
185
[InlineData(
ActivityTrackingOptions
.TraceId |
ActivityTrackingOptions
.ParentId |
ActivityTrackingOptions
.TraceState)]
186
[InlineData(
ActivityTrackingOptions
.TraceId |
ActivityTrackingOptions
.ParentId |
ActivityTrackingOptions
.TraceFlags)]
187
[InlineData(
ActivityTrackingOptions
.TraceId |
ActivityTrackingOptions
.TraceState |
ActivityTrackingOptions
.TraceFlags)]
188
[InlineData(
ActivityTrackingOptions
.SpanId |
ActivityTrackingOptions
.TraceId |
ActivityTrackingOptions
.ParentId |
ActivityTrackingOptions
.TraceState)]
189
[InlineData(
ActivityTrackingOptions
.SpanId |
ActivityTrackingOptions
.TraceId |
ActivityTrackingOptions
.ParentId |
ActivityTrackingOptions
.TraceFlags)]
190
[InlineData(
ActivityTrackingOptions
.TraceId |
ActivityTrackingOptions
.ParentId |
ActivityTrackingOptions
.TraceState |
ActivityTrackingOptions
.TraceFlags)]
191
[InlineData(
ActivityTrackingOptions
.SpanId |
ActivityTrackingOptions
.TraceId |
ActivityTrackingOptions
.ParentId |
ActivityTrackingOptions
.TraceState |
ActivityTrackingOptions
.TraceFlags)]
192
public static void TestActivityIds(
ActivityTrackingOptions
options)
238
Utils.CreateLoggerFactory(builder => { builder.Configure(o => o.ActivityTrackingOptions = (
ActivityTrackingOptions
)0xFF00); }));
249
.Configure(o => o.ActivityTrackingOptions =
ActivityTrackingOptions
.Baggage)
282
.Configure(o => o.ActivityTrackingOptions =
ActivityTrackingOptions
.TraceId |
ActivityTrackingOptions
.Tags)
311
.Configure(o => o.ActivityTrackingOptions =
ActivityTrackingOptions
.TraceId |
ActivityTrackingOptions
.Baggage |
ActivityTrackingOptions
.Tags)
322
string traceIdActivityLogString = GetActivityLogString(
ActivityTrackingOptions
.TraceId);
339
.Configure(o => o.ActivityTrackingOptions =
ActivityTrackingOptions
.Baggage |
ActivityTrackingOptions
.Tags)
413
.Configure(o => o.ActivityTrackingOptions =
ActivityTrackingOptions
.TraceId |
ActivityTrackingOptions
.Baggage |
ActivityTrackingOptions
.Tags)
422
string traceIdActivityLogString = GetActivityLogString(
ActivityTrackingOptions
.TraceId);