Specify Proxy Arguments
You can specify proxy arguments when working with APM Dotnet agents.
If using a proxy server, you must specify the proxy environment details.
Environment Variable | Description |
---|---|
OTEL_PROXY_URL | The proxy URL. Example: http://www-proxy.example.com:80.
This environment variable is required to specify a proxy. |
OTEL_PROXY_USERNAME | The username used to authenticate in the proxy. This environment variable is optional. It is needed only if the proxy server needs authentication. |
OTEL_PROXY_PASSWORD | The password used to authenticate in the proxy. This environment variable is optional. It is needed only if the proxy server needs authentication. |
OTEL_PROXY_DOMAIN | The domain name if the username is in a Windows domain. This environment variable is optional. It is needed only if the proxy server needs authentication and the username for authentication is in a domain. |
Specify Proxy In Windows
During Deploy the APM Dotnet Agent, prepare the environmental variables on PowerShell:
$env:OTEL_PROXY_URL="<your proxy URL>"
If the proxy server needs authentication, you must specify the authentication arguments:
$env:OTEL_PROXY_USERNAME="<username for proxy>"
$env:OTEL_PROXY_PASSWORD="<password for proxy>"
If the username is in a Windows domain, then you must specify the domain name:
$env:OTEL_PROXY_DOMAIN="<domain name if the username in a domain>"
Specify Proxy In Linux
During Deploy the APM Dotnet Agent in Linux, prepare the environmental variables:
export OTEL_DOTNET_AUTO_PLUGINS="OracleApmNetAgentEx.Plugin.OracleOtelPlugin, OracleApmNetAgentEx, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ba1a243c3b2207e1"
export OTEL_PROXY_URL="<your proxy URL>"
If the proxy server needs authentication, you must specify the authentication arguments:
export OTEL_PROXY_USERNAME="<username for proxy>"
export OTEL_PROXY_PASSWORD="<password for proxy>"
If the proxy server needs a username in a domain, then you must specify the domain name:
export OTEL_PROXY_DOMAIN="<domain name if the username in a domain>"