Skip to content

Collector and http client port mismatch #2614

Closed
@doggan

Description

@doggan

Description

otlptracehttp client defaults to port 4317, but collector spec says http uses 4318. (4317 is for grpc).

Environment

	go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.4.0
	go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.4.0
	go.opentelemetry.io/otel/sdk v1.4.0
	go.opentelemetry.io/otel/trace v1.4.0

Steps To Reproduce

  1. N/A

Expected behavior

I would expect the http client to default to port 4318, such that it is aligned with the port expected by the collector.

Activity

MrAlias

MrAlias commented on Feb 16, 2022

@MrAlias
Contributor

The OpenTelemetry specification also states the port 4318 should be used as the default for HTTP.

This is currently unified in the internal/otlpconfig package.

It will need to be refactored to support different default values for the different clients.

self-assigned this
on Feb 17, 2022
added this to the Release v1.5.0 milestone on Feb 24, 2022
moved this to Closed in Go: Triageon Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Closed

Relationships

None yet

    Development

    Participants

    @doggan@MrAlias

    Issue actions

      Collector and http client port mismatch · Issue #2614 · open-telemetry/opentelemetry-go