Install:
dotnet tool install -g csharpier
Use:
dotnet csharpier .
Install:
dotnet tool install -g dotnet-format
Use:
dotnet format
dotnet new sln --name uptrace
dotnet new classlib --name Uptrace.OpenTelemetry --output src/Uptrace.OpenTelemetry
dotnet sln add ./src/Uptrace.OpenTelemetry/Uptrace.OpenTelemetry.csproj
Adding a new project to the solution:
dotnet new console --name Example.Otlp --output example/otlp
dotnet sln add ./example/otlp/Example.Otlp.csproj
dotnet add package OpenTelemetry.Exporter.OpenTelemetryProtocol.Logs
To enable logging and self-diagnostics, see https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/src/OpenTelemetry#troubleshooting