opentelemetry-java icon indicating copy to clipboard operation
opentelemetry-java copied to clipboard

Support unix socket for otlp exporter

Open KimMJ opened this issue 2 months ago • 4 comments

Is your feature request related to a problem? Please describe. I'm trying to use uds to export otel signals. But it was failed by endpoint validation. Currently opentelemetry-java have protocol validation which allows only http and https prefix.

Describe the solution you'd like Make opentelemetry-java export otel signals through unix socket

Describe alternatives you've considered none

Additional context https://github.com/open-telemetry/opentelemetry-java/blob/a839ef517fab337c46a1dc7a511041480f535394/exporters/otlp/all/src/main/java/io/opentelemetry/exporter/otlp/internal/OtlpConfigUtil.java#L188

Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

KimMJ avatar Nov 17 '25 18:11 KimMJ

This is a reasonable request. This spec document lays out the required configuration options for SDK implementations of OTLP exporters, and doesn't explicitly mention unix sockets. But the document is meant to establish minimum common configuration, not to limit configuration to only those options.

jack-berg avatar Nov 17 '25 19:11 jack-berg

https://github.com/open-telemetry/opentelemetry-collector/issues/11941

looks opentelemetry-go and otel collector already supports unix sockets

KimMJ avatar Nov 18 '25 05:11 KimMJ

https://github.com/open-telemetry/opentelemetry-specification/issues/4404 it is not defined in spec, though some sdk supports it

KimMJ avatar Nov 18 '25 05:11 KimMJ

I don't have cycles to pick this up, but I've wanted to experiment with this for some time! I think there are some rare/exceptional high-throughput workloads that might benefit from having this.

breedx-splk avatar Dec 08 '25 18:12 breedx-splk