Skip to content

binary-amigo/dotnet-demo

Repository files navigation

Download the bash script

curl -sSfL https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/releases/latest/download/otel-dotnet-auto-install.sh -O

Install core files

sh ./otel-dotnet-auto-install.sh

Enable execution for the instrumentation script

chmod +x $HOME/.otel-dotnet-auto/instrument.sh

Setup the instrumentation for the current shell session

. $HOME/.otel-dotnet-auto/instrument.sh

local host

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors