Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 949 Bytes

CONTRIBUTING.md

File metadata and controls

55 lines (37 loc) · 949 Bytes

Contributing

Code formatting with csharpier

Install:

dotnet tool install -g csharpier

Use:

dotnet csharpier .

Code formatting with dotnet-format

Install:

dotnet tool install -g dotnet-format

Use:

dotnet format

Creating a solution

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

Adding a package

dotnet add package OpenTelemetry.Exporter.OpenTelemetryProtocol.Logs

Logging and self-diagnostics

To enable logging and self-diagnostics, see https://github.com/open-telemetry/opentelemetry-dotnet/tree/main/src/OpenTelemetry#troubleshooting