.NET
Add OpenTelemetry to your .NET application and export the traces to Aspecto's collector
Installation
Then, install instrumentations libraries that are relevant to your applications, for example:
You can browse all available instrumentation libraries in opentelemetry-dotnet repo and opentelemetry-dotnet-contrib repo
Setup OpenTelemetry SDK in Code
Steps:
Initialize OpenTelemetry
Set the OpenTelemetry Resource, which must include your
service.name
Add Instrumentation Libraries which you installed
Configure OTLP exporter to send traces to Aspecto. You can find your Aspecto Token here
For ASP.NET Core, you need to add this code to the ConfigureServices
function in Startup.cs
:
More Info
You can see more examples and documentation in the project's github repo
Last updated