Skip to content

[exporter/otlp] Attempts to parse port from unix socket endpoint and fails #13826

@jsternberg

Description

@jsternberg

Component(s)

exporter/otlp

What happened?

Describe the bug

An attempt to use a unix socket endpoint returns an error saying the port is invalid.

Steps to reproduce

Add the following configuration:

exporters:
    otlp:
        endpoint: unix:///my/unix/socket.sock
        tls:
            insecure: true

What did you expect to see?

I expected it to use the unix socket.

What did you see instead?

invalid configuration: exporters::otlp: invalid port "///tmp/B2604682329/exporter.grpc.sock"

Collector version

v0.135.0

Additional context

This configuration worked previously. We're attempting to upgrade from a version that used v0.92 to the latest and this now seems to no longer work. I'm not sure how else to configure the exporter to use a Unix socket.

Seems to be related to this change: #9632

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions