File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Elastic.CommonSchema.NLog
Elastic.CommonSchema.Serilog
Elastic.Extensions.Logging/Options Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ internal class NlogEcsDocumentCreationOptions : IEcsDocumentCreationOptions
22
22
public bool IncludeHost { get ; set ; } = false ;
23
23
public bool IncludeProcess { get ; set ; } = false ;
24
24
public bool IncludeUser { get ; set ; } = false ;
25
- public bool IncludeTraceId { get ; set ; } = false ;
25
+ public bool IncludeActivityData { get ; set ; } = false ;
26
26
}
27
27
28
28
/// <summary> An NLOG layout implementation that renders logs as ECS json</summary>
Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ public class EcsTextFormatterConfiguration<TEcsDocument> : IEcsTextFormatterConf
57
57
/// <inheritdoc cref="IEcsDocumentCreationOptions.IncludeUser"/>
58
58
public bool IncludeUser { get ; set ; } = true ;
59
59
60
- /// <inheritdoc cref="IEcsDocumentCreationOptions.IncludeTraceId "/>
61
- public bool IncludeTraceId { get ; set ; } = true ;
60
+ /// <inheritdoc cref="IEcsDocumentCreationOptions.IncludeActivityData "/>
61
+ public bool IncludeActivityData { get ; set ; } = true ;
62
62
63
63
/// <inheritdoc cref="IEcsTextFormatterConfiguration.MapHttpAdapter"/>
64
64
public IHttpAdapter ? MapHttpAdapter { get ; set ; }
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public interface IEcsDocumentCreationOptions
38
38
/// <summary>
39
39
/// Gets or sets a flag indicating whether TraceId/SpanId should be included in the message. Defaults to <c>true</c>.
40
40
/// </summary>
41
- bool IncludeTraceId { get ; set ; }
41
+ bool IncludeActivityData { get ; set ; }
42
42
}
43
43
44
44
/// <summary>
@@ -94,7 +94,7 @@ public static TEcsDocument CreateNewWithDefaults<TEcsDocument>(
94
94
if ( options ? . IncludeHost is null or true ) doc . Host = GetHost ( initialCache ) ;
95
95
if ( options ? . IncludeProcess is null or true ) doc . Process = GetProcess ( initialCache ) ;
96
96
if ( options ? . IncludeUser is null or true ) doc . User = GetUser ( ) ;
97
- if ( options ? . IncludeTraceId is null or true )
97
+ if ( options ? . IncludeActivityData is null or true )
98
98
SetActivityData ( doc ) ;
99
99
100
100
return doc ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public class ElasticsearchLoggerOptions : IEcsDocumentCreationOptions
32
32
/// <summary>
33
33
/// Gets or sets a flag indicating whether TraceId/SpanId should be included in the message. Defaults to <c>true</c>.
34
34
/// </summary>
35
- public bool IncludeTraceId { get ; set ; } = true ;
35
+ public bool IncludeActivityData { get ; set ; } = true ;
36
36
37
37
/// <summary>
38
38
/// The data stream to log into, defaults to <c>logs-generic-default</c> if neither <see cref="DataStream"/> or <see cref="Index"/> is set.
You can’t perform that action at this time.
0 commit comments