Make instrument.sh capable of directly launching app (#2867)
This commit is contained in:
parent
7d932f8dfa
commit
2ecc93aaa6
|
@ -207,6 +207,12 @@ export OTEL_DOTNET_AUTO_HOME="bin/tracer-home"
|
||||||
. ./instrument.sh
|
. ./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
|
### Using playground application
|
||||||
|
|
||||||
You can use [the example playground application](../examples/playground)
|
You can use [the example playground application](../examples/playground)
|
||||||
|
|
|
@ -150,3 +150,5 @@ if [ "$ENABLE_PROFILING" = "true" ]; then
|
||||||
export CORECLR_PROFILER_PATH="$OTEL_DOTNET_AUTO_HOME/$DOTNET_RUNTIME_ID/OpenTelemetry.AutoInstrumentation.Native.$SUFIX"
|
export CORECLR_PROFILER_PATH="$OTEL_DOTNET_AUTO_HOME/$DOTNET_RUNTIME_ID/OpenTelemetry.AutoInstrumentation.Native.$SUFIX"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
$@
|
||||||
|
|
Loading…
Reference in New Issue