sh ./otel-dotnet-auto-install.sh
chmod +x $HOME/.otel-dotnet-auto/instrument.sh
. $HOME/.otel-dotnet-auto/instrument.sh
OTEL_SERVICE_NAME=dotnet-local
OTEL_RESOURCE_ATTRIBUTES="deployment.environment=staging,service.version=1.0.0"
OTEL_TRACES_EXPORTER=otlp
OTEL_LOGS_EXPORTER=otlp
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="http://demo.codexray.io/v1/traces"
OTEL_EXPORTER_OTLP_LOGS_ENDPOINT="http://demo.codexray.io/v1/logs"
OTEL_EXPORTER_OTLP_HEADERS="x-api-key=5jsc1jqr, X-Metrics-Type=otel"
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
OTEL_METRICS_EXPORTER=console
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT="http://demo.codexray.io/v1/metrics"
OTEL_DOTNET_RUNTIME_METRICS_ENABLED=true dotnet run