dotnet-trace should start locally installed dsrouter tool
- Dominant language
- C++
- Stars
- 1.3k
- Forks
- 404
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 38
Description
## Background and Motivation
When I pass the `--dsrouter` option, `dotnet-trace` tries to run the globally installed `dotnet-dsrouter`. It doesn't find the tool that's installeded locally.
Currently, the output looks like this:
```
$ dotnet tool run dotnet-trace collect --providers Microsoft-Windows-DotNETRuntime:0x1F000080018:5 --dsrouter android
WARNING: dotnet-dsrouter is a development tool not intended for production environments.
For finer control over the dotnet-dsrouter options, run it separately and connect to it using -p
An error occurred trying to start process '/usr/local/share/dotnet/dotnet-dsrouter' with working directory '...'
An error occurred trying to start process '/usr/local/share/dotnet/dotnet-dsrouter' with working directory '...'. No such file or directory
Failed to launch dsrouter: android. Please make sure that dotnet-dsrouter is installed and available in the same directory as dotnet-trace.
You can install dotnet-dsrouter by running 'dotnet tool install --global dotnet-dsrouter'. More info at https://learn.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-dsrouter
```
## Usage Examples
```
# install dsrouter locally
dotnet tool install dotnet-dsrouter
# dotnet-trace will start the locally installed dsrouter
dotnet tool run dotnet-trace collect ... --dsrouter android
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.