Skip to content

Probe checks wrong port for http/https endpoints without explicit port #3

@John-Lin

Description

@John-Lin

When the endpoint URL has no explicit port (e.g. https://api.honeycomb.io), probeEndpoint falls back to port 4317:

port = parseInt(url.port || "4317", 10)

url.port returns an empty string for default ports (80 for http, 443 for https), so the fallback always kicks in.

The probe ends up checking TCP connectivity on port 4317, while the OTel SDK actually connects on 443 (or 80).

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