Enable the Combined Mode for .NET Agent

You can configure the combined mode for .NET Agent (Splunk-only mode and Dual-signal mode). The combined mode is not supported in NuGet-based distributions and Azure AppService Extensions.

Enable Dual-signal mode

Ensure your .NET application is running on a supported runtime that is mutually compatible with both AppDynamics and OpenTelemetry (OTEL) profilers.

To enable dual mode, set the AGENT_DEPLOYMENT_MODE=dual environment variables before starting your application.

Enable Splunk-only mode

To enable this mode, set the AGENT_DEPLOYMENT_MODE=otel environment variables before starting your application.

Configure .Net OpenTelemetry Agent

After providing the required environment variables, you must also provide configuration for the OTEL component to successfully report data. At a minimum, you must define:
  • Service Identification: A unique name to identify your service in the observability platform.
  • Telemetry Export Destination: The endpoint (the Splunk Distribution of the OpenTelemetry Collector) where the agent should send telemetry data.
You can additionally define the following environment variables:
  • OTEL_SERVICE_NAME: Specify the service name.
  • OTEL_RESOURCE_ATTRIBUTES: Specify service namespace and deployment environment variables.
  • OTEL_EXPORTER_OTLP_ENDPOINT: This environment variable changes the OTLP endpoint.
Example:
CODE
OTEL_SERVICE_NAME=<service_name>
OTEL_RESOURCE_ATTRIBUTES=service.namespace=<service_namespace>,deployment.environment.name=<environment>
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318