@@ -43,7 +43,7 @@ public static class OpenTelemetryLoggerConfigurationExtensions
43
43
/// Send log events to an OTLP exporter.
44
44
/// </summary>
45
45
/// <param name="loggerSinkConfiguration">
46
- /// The ` WriteTo` configuration object.
46
+ /// The <c> WriteTo</c> configuration object.
47
47
/// </param>
48
48
/// <param name="configure">The configuration callback.</param>
49
49
/// <param name="ignoreEnvironment">If false the configuration will be overridden with values
@@ -69,7 +69,10 @@ public static LoggerConfiguration OpenTelemetry(
69
69
tracesEndpoint : options . TracesEndpoint ,
70
70
protocol : options . Protocol ,
71
71
headers : new Dictionary < string , string > ( options . Headers ) ,
72
- httpMessageHandler : options . HttpMessageHandler ?? CreateDefaultHttpMessageHandler ( ) ) ;
72
+ httpMessageHandler : options . HttpMessageHandler ?? CreateDefaultHttpMessageHandler ( ) ,
73
+ onBeginSuppressInstrumentation : options . OnBeginSuppressInstrumentation != null ?
74
+ ( ) => options . OnBeginSuppressInstrumentation ( true )
75
+ : null ) ;
73
76
74
77
ILogEventSink ? logsSink = null , tracesSink = null ;
75
78
@@ -103,7 +106,7 @@ public static LoggerConfiguration OpenTelemetry(
103
106
/// Send log events to an OTLP exporter.
104
107
/// </summary>
105
108
/// <param name="loggerSinkConfiguration">
106
- /// The ` WriteTo` configuration object.
109
+ /// The <c> WriteTo</c> configuration object.
107
110
/// </param>
108
111
/// <param name="endpoint">
109
112
/// The full URL of the OTLP exporter endpoint.
@@ -156,7 +159,7 @@ public static LoggerConfiguration OpenTelemetry(
156
159
/// Audit to an OTLP exporter, waiting for each event to be acknowledged, and propagating errors to the caller.
157
160
/// </summary>
158
161
/// <param name="loggerAuditSinkConfiguration">
159
- /// The ` AuditTo` configuration object.
162
+ /// The <c> AuditTo</c> configuration object.
160
163
/// </param>
161
164
/// <param name="configure">The configuration callback.</param>
162
165
public static LoggerConfiguration OpenTelemetry (
@@ -173,7 +176,10 @@ public static LoggerConfiguration OpenTelemetry(
173
176
tracesEndpoint : options . TracesEndpoint ,
174
177
protocol : options . Protocol ,
175
178
headers : new Dictionary < string , string > ( options . Headers ) ,
176
- httpMessageHandler : options . HttpMessageHandler ?? CreateDefaultHttpMessageHandler ( ) ) ;
179
+ httpMessageHandler : options . HttpMessageHandler ?? CreateDefaultHttpMessageHandler ( ) ,
180
+ onBeginSuppressInstrumentation : options . OnBeginSuppressInstrumentation != null ?
181
+ ( ) => options . OnBeginSuppressInstrumentation ( true )
182
+ : null ) ;
177
183
178
184
ILogEventSink ? logsSink = null , tracesSink = null ;
179
185
0 commit comments