Skip to content

Commit 70a5bce

Browse files
committed
docs
1 parent 8e6aac9 commit 70a5bce

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

docs/file-based-configuration.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ file-based configuration to include these parameters.
5151
| `OTEL_DOTNET_AUTO_EXCLUDE_PROCESSES` | Names of the executable files that the profiler cannot instrument. |
5252
| `OTEL_DOTNET_AUTO_OPENTRACING_ENABLED` | Enables OpenTracing tracer. |
5353
| `OTEL_DOTNET_AUTO_NETFX_REDIRECT_ENABLED` | Enables automatic redirection of the assemblies used by the automatic instrumentation on the .NET Framework. |
54-
| `OTEL_DOTNET_AUTO_SQLCLIENT_NETFX_ILREWRITE_ENABLED` | Enables IL rewriting of `SqlCommand` on .NET Framework to ensure `CommandText` is present for `SqlClient` instrumentation |
5554

5655
---
5756

@@ -541,6 +540,10 @@ instrumentation/development:
541540
# Whether the Oracle Client instrumentation can pass SQL statements through the db.statement attribute. Queries might contain sensitive information. If set to false, db.statement is recorded only for executing stored procedures.
542541
# Default is false
543542
set_db_statement_for_text: false
543+
sqlclient:
544+
# Enables IL rewriting of SqlCommand on .NET Framework to ensure CommandText is available for instrumentation.
545+
# Default is false
546+
netfx_ilrewrite_enabled: false
544547
aspnet:
545548
# A comma-separated list of HTTP header names. ASP.NET instrumentations will capture HTTP request header values for all configured header names.
546549
capture_request_headers: "X-Key,X-Custom-Header,X-Header-Example"

examples/file-based-configuration-files/kitchen-sink.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,9 @@ instrumentation/development:
595595
rabbitmq: # RabbitMQ.Client
596596
quartz: # Quartz
597597
sqlclient: # Microsoft.Data.SqlClient & System.Data.SqlClient
598+
# Enables IL rewriting of SqlCommand on .NET Framework to ensure CommandText is available for instrumentation.
599+
# If omitted false is used.
600+
netfx_ilrewrite_enabled: false
598601
stackexchangeredis: # StackExchange.Redis
599602
wcfclient: # WCF Client
600603
wcfservice: # WCF Service

examples/file-based-configuration-files/sdk-migration-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ instrumentation/development:
236236
rabbitmq: # RabbitMQ.Client
237237
quartz: # Quartz
238238
sqlclient: # Microsoft.Data.SqlClient & System.Data.SqlClient
239+
# Enables IL rewriting of SqlCommand on .NET Framework to ensure CommandText is available for instrumentation.
240+
# If omitted false is used.
241+
netfx_ilrewrite_enabled: ${OTEL_DOTNET_AUTO_SQLCLIENT_NETFX_ILREWRITE_ENABLED:-false}
239242
stackexchangeredis: # StackExchange.Redis
240243
wcfclient: # WCF Client
241244
wcfservice: # WCF Service

0 commit comments

Comments
 (0)