Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 1.56 KB

migration.md

File metadata and controls

31 lines (28 loc) · 1.56 KB

Migrating to OpenTelemetry .NET

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 variable
    • service.name
    • service.namespace
    • service.instance.id
    • service.version
    • deployment.environment
export OTEL_RESOURCE_ATTRIBUTES=service.instance.id=<pod123>,deployment.environment=...