diff --git a/docs/developing.md b/docs/developing.md index 92775c9ed..bbcc35cb8 100644 --- a/docs/developing.md +++ b/docs/developing.md @@ -207,6 +207,12 @@ export OTEL_DOTNET_AUTO_HOME="bin/tracer-home" . ./instrument.sh ``` +The script can also launch the application to be instrumented directly: + +```sh +OTEL_DOTNET_AUTO_HOME="bin/tracer-home" ./instrument.sh dotnet MyApp.dll +``` + ### Using playground application You can use [the example playground application](../examples/playground) diff --git a/instrument.sh b/instrument.sh index 92a7e72fb..12e5cd4ac 100755 --- a/instrument.sh +++ b/instrument.sh @@ -150,3 +150,5 @@ if [ "$ENABLE_PROFILING" = "true" ]; then export CORECLR_PROFILER_PATH="$OTEL_DOTNET_AUTO_HOME/$DOTNET_RUNTIME_ID/OpenTelemetry.AutoInstrumentation.Native.$SUFIX" fi fi + +$@