Skip to main content
This example shows how to configure the OpenTelemetry .NET SDK’s logger provider to send logs from a .NET application to Honeycomb or to an OpenTelemetry Collector.
1

Acquire Dependencies

Install the OpenTelemetry SDK and OTLP exporter packages:
2

Configure the Logger Provider

During application setup, create and configure the logger provider:
3

Run Your Application

Set environment variables to configure the exporter and define your service name, then run your application.To send logs directly to Honeycomb:
To send logs to an OpenTelemetry Collector instead: