Skip to content

Set logs endpoint when SPLUNK_REALM is configured #737

Description

@pmcollins

SPLUNK_REALM currently configures direct ingest endpoints for traces and metrics, but not logs. In src/splunk_otel/distro.py, handle_realm() sets OTEL_EXPORTER_OTLP_TRACES_ENDPOINT to /v2/trace/otlp and OTEL_EXPORTER_OTLP_METRICS_ENDPOINT to /v2/datapoint/otlp, but leaves OTEL_EXPORTER_OTLP_LOGS_ENDPOINT unset.

Profiling data is exported through OTLP logs, so a user who configures SPLUNK_REALM for direct ingest still has to manually set SPLUNK_PROFILER_LOGS_ENDPOINT or OTEL_EXPORTER_OTLP_LOGS_ENDPOINT for profiling logs to go to Splunk Observability Cloud.

Realm handling should also set the logs endpoint, likely /v2/log/otlp, while preserving explicit user-provided endpoint overrides.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions