All functionality provided by the distribution can also be utilized by manually installing and configuring upstream OpenTelemetry .NET packages. Follow these steps if you want to migrate from this distribution to the upstream OpenTelemetry .NET project.
- Set appropriate environment variables or web.config/app.config values as explained here
- Install and activate the OpenTelemetry SDK, as covered in the upstream Getting Started guide
- Setup the OTLP exporter for metrics, logs, and traces - see the
exporter README
for details. The exporter will respect the previously set environment variables:
OTEL_EXPORTER_OTLP_PROTOCOL
OTEL_EXPORTER_OTLP_ENDPOINT
OTEL_EXPORTER_OTLP_HEADERS
- Install and configure any desired instrumentation packages listed here
- Add the OpenTelemetry resource attributes
via the
OTEL_RESOURCE_ATTRIBUTES
environment variableservice.name
service.namespace
service.instance.id
service.version
deployment.environment
export OTEL_RESOURCE_ATTRIBUTES=service.instance.id=<pod123>,deployment.environment=...