Configure OTLP exporter via env opentelemetry

Auto-instrumentation endpoint and resource attrs without code change. 4317=gRPC, 4318=HTTP.

export OTEL_EXPORTER_OTLP_ENDPOINT=http://collector:4317 OTEL_RESOURCE_ATTRIBUTES=service.name=api,deployment.environment=prod
more opentelemetry all 3 commands →