opentelemetry commands

3 commands, each with a one-line explanation. Click a command to copy it, or its title for details.

Commands 3 shown

  • otelcol validate --config=/etc/otelcol/config.yaml

    Statically check collector pipeline before reload. catches bad receivers/processors/exporters.

    otel · ci · troubleshooting

  • export OTEL_EXPORTER_OTLP_ENDPOINT=http://collector:4317 OTEL_RESOURCE_ATTRIBUTES=service.name=api,deployment.environment=prod

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

    otel · observability · cloud

  • curl -s -XPOST http://collector:4318/v1/traces -H 'Content-Type: application/json' -d @trace.json -w '%{http_code}'

    Smoke-test the OTLP HTTP receiver with a sample payload. note: 4318 path, not 4317.

    otel · api · debug