@@ -299,136 +299,11 @@ after installation/configuration in order for any change to take effect.
299
299
(** default:** ` '' ` , i.e. defer to the default ` OTEL_LOGS_EXPORTER ` value for
300
300
each activated SDK)
301
301
302
- ### Auto Instrumentation for .NET on Windows
303
-
304
- *** Warning:*** The ` Environment ` property in the
305
- ` HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC ` registry key will
306
- be overwritten by the options specified below to enable/configure auto
307
- instrumentation for IIS. Use the
308
- ` signalfx_dotnet_auto_instrumentation_additional_options ` option (see below for
309
- details) to include any other environment variables required for IIS.
310
-
311
- ** Note:** By default, IIS will be restarted with the ` iisreset ` command (if it
312
- exists) after installation/configuration. Applications *** not*** running within
313
- IIS need to be restarted/managed separately in order for any changes to take
314
- effect.
315
-
316
- - ` with_signalfx_dotnet_auto_instrumentation ` (Windows only): Whether to
317
- install/manage [ SignalFx Auto Instrumentation for .NET] (
318
- https://docs.splunk.com/Observability/gdi/get-data-in/application/dotnet/get-started.html ).
319
- When set to ` true ` , the ` signalfx-dotnet-tracing ` MSI package will be
320
- downloaded and installed, and the Windows registry will be updated based on
321
- the options below. (** default:** ` false ` )
322
-
323
- - ` signalfx_dotnet_auto_instrumentation_version ` (Windows only): Version of the
324
- ` signalfx-dotnet-tracing ` MSI package to download and install from
325
- [ GitHub Releases] ( https://github.com/signalfx/signalfx-dotnet-tracing/releases ) .
326
- (** default:** ` 1.1.0 ` )
327
-
328
- - ` signalfx_dotnet_auto_instrumentation_msi_url ` (Windows only): Specify the
329
- URL to download the MSI from a custom host, for example
330
- ` https://my.host/signalfx-dotnet-tracing-1.0.0-x64.msi ` . If specified, the
331
- ` signalfx_dotnet_auto_instrumentation_version ` option is ignored.
332
- (** default:** ` https://github.com/signalfx/signalfx-dotnet-tracing/releases/download/v{{ signalfx_dotnet_auto_instrumentation_version }}/signalfx-dotnet-tracing-{{ signalfx_dotnet_auto_instrumentation_version }}-x64.msi ` )
333
-
334
- - ` signalfx_dotnet_auto_instrumentation_iisreset ` (Windows only): By default,
335
- the ` iisreset.exe ` command (if it exists) will be executed after
336
- installation/configuration in order for any changes to take effect for IIS
337
- applications. Set this option to ` false ` to skip this step if IIS is managed
338
- separately or is not applicable. (** default:** ` true ` )
339
-
340
- - ` signalfx_dotnet_auto_instrumentation_system_wide ` (Windows only): By
341
- default, the ` Environment ` property in the
342
- ` HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC ` registry key
343
- will be configured for the following environment variables and any from the
344
- ` signalfx_dotnet_auto_instrumentation_additional_options ` option to
345
- enable/configure auto instrumentation for *** only*** IIS applications:
346
- ``` yaml
347
- COR_ENABLE_PROFILING : true # Required
348
- COR_PROFILER : " {B4C89B0F-9908-4F73-9F59-0D77C5A06874}" # Required
349
- CORECLR_ENABLE_PROFILING : true # Required
350
- CORECLR_PROFILER : " {B4C89B0F-9908-4F73-9F59-0D77C5A06874}" # Required
351
- SIGNALFX_ENV : " {{ signalfx_dotnet_auto_instrumentation_environment }}"
352
- SIGNALFX_PROFILER_ENABLED : " {{ signalfx_dotnet_auto_instrumentation_enable_profiler }}"
353
- SIGNALFX_PROFILER_MEMORY_ENABLED : " {{ signalfx_dotnet_auto_instrumentation_enable_profiler_memory }}"
354
- SIGNALFX_SERVICE_NAME : " {{ signalfx_dotnet_auto_instrumentation_service_name }}"
355
- ` ` `
356
- Set this option to ` true` to also add these environment variables and any
357
- from the `signalfx_dotnet_auto_instrumentation_additional_options` option to
358
- the
359
- ` HKEY_LOCAL_MACHINE\S YSTEM\C urrentControlSet\C ontrol\S ession Manager\E nvironment`
360
- registry key to enable/configure auto instrumentation for ***all*** .NET
361
- applications on the node. (**default:** `false`)
362
-
363
- - `signalfx_dotnet_auto_instrumentation_environment` (Windows only) : Configure
364
- this option to set the "Environment" value to be reported to Splunk APM, for
365
- example `production`. The value is assigned to the `SIGNALFX_ENV` environment
366
- variable in the Windows registry (**default:** `''`, i.e. the "Environment"
367
- will appear as `unknown` in Splunk APM for the instrumented
368
- service/application)
369
-
370
- - `signalfx_dotnet_auto_instrumentation_service_name` (Windows only) : Configure
371
- this variable to override the [auto-generated service name](
372
- https://docs.splunk.com/Observability/gdi/get-data-in/application/dotnet/configuration/advanced-dotnet-configuration.html#changing-the-default-service-name)
373
- for the instrumented service/application, for example `my-service-name`. The
374
- value is assigned to the `SIGNALFX_SERVICE_NAME` environment variable in the
375
- Windows registry. (**default:** `''`)
376
-
377
- - `signalfx_dotnet_auto_instrumentation_enable_profiler` (Windows only) : Set
378
- this option to `true` to enable AlwaysOn Profiling. The value will be
379
- assigned to the `SIGNALFX_PROFILER_ENABLED` environment variable in the
380
- Windows registry. (**default:** `false`)
381
-
382
- - `signalfx_dotnet_auto_instrumentation_enable_profiler_memory` (Windows only) :
383
- Set this option to `true` to enable AlwaysOn Memory Profiling. The value will
384
- be assigned to the `SIGNALFX_PROFILER_MEMORY_ENABLED` environment variable in
385
- the Windows registry. (**default:** `false`)
386
-
387
- - `signalfx_dotnet_auto_instrumentation_additional_options` (Windows only) :
388
- Hash of additional options to be added to the Windows registry
389
- ***in addition*** to the options above. (**default:** `{}`)
390
-
391
- For example :
392
- ` ` ` yaml
393
- signalfx_dotnet_auto_instrumentation_additional_options: {
394
- 'SIGNALFX_VERSION': '1.2.3',
395
- 'SIGNALFX_FILE_LOG_ENABLED': false,
396
- # Hint: If the signalfx_dotnet_auto_instrumentation_system_wide option is
397
- # set to true, all .NET applications on the node will be instrumented. Use
398
- # the following options to include/exclude processes from auto
399
- # instrumentation.
400
- 'SIGNALFX_PROFILER_PROCESSES': 'MyApp.exe;dotnet.exe',
401
- 'SIGNALFX_PROFILER_EXCLUDE_PROCESSES': 'ReservedProcess.exe;powershell.exe',
402
- }
403
- ` ` `
404
- Check the [Advanced Configuration Guide](
405
- https://docs.splunk.com/Observability/gdi/get-data-in/application/dotnet/configuration/advanced-dotnet-configuration.html)
406
- for more details about the options above and other supported options.
407
-
408
- To uninstall the `signalfx-dotnet-tracing` MSI and disable auto
409
- instrumentation, include the following in your recipe and restart all
410
- applicable services :
411
- ` ` `
412
- windows_package 'SignalFx .NET Tracing 64-bit' do
413
- action :remove
414
- end
415
-
416
- # If the "signalfx_dotnet_auto_instrumentation_system_wide" option was set to
417
- # "true", include the following to remove the values from the
418
- # "HKEY_LOCAL_MACHINE\S YSTEM\C urrentControlSet\C ontrol\S ession Manager\E nvironment"
419
- # registry key:
420
-
421
- registry_key 'HKEY_LOCAL_MACHINE\S YSTEM\C urrentControlSet\C ontrol\S ession Manager\E nvironment' do
422
- values [
423
- { name: 'COR_ENABLE_PROFILING', type: :string, data: '' },
424
- { name: 'COR_PROFILER', type: :string, data: '' },
425
- { name: 'CORECLR_ENABLE_PROFILING', type: :string, data: '' },
426
- { name: 'CORECLR_PROFILER', type: :string, data: '' },
427
- { name: 'SIGNALFX_ENV', type: :string, data: '' },
428
- { name: 'SIGNALFX_PROFILER_ENABLED', type: :string, data: '' },
429
- { name: 'SIGNALFX_PROFILER_MEMORY_ENABLED', type: :string, data: '' },
430
- { name: 'SIGNALFX_SERVICE_NAME', type: :string, data: '' },
431
- ]
432
- action :delete
433
- end
434
- ` ` `
302
+ ### SignalFx Auto Instrumentation for .NET on Windows
303
+
304
+ The option to install the [ SignalFx Auto Instrumentation for .NET] (
305
+ https://docs.splunk.com/Observability/gdi/get-data-in/application/dotnet/get-started.html )
306
+ ` with_signalfx_dotnet_auto_instrumentation ` is deprecated and
307
+ will have no effect after release ` 0.16.0 ` .
308
+ Install the [ Splunk Distribution of OpenTelemetry .NET] ( https://docs.splunk.com/observability/en/gdi/get-data-in/application/otel-dotnet/get-started.html#instrument-net-applications-for-splunk-observability-cloud-opentelemetry )
309
+ instead.
0 commit comments