Skip to content

[loadbalancingexporter] Set the default otlp port 4317 in factory and unit test #31425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

atmask
Copy link
Contributor

@atmask atmask commented Feb 27, 2024

Description:
As described in the otel-collector issue 9505, the otlpexporter does not function correctly if no port is defined. To resolve this, the otlp config validation has been updated to fail fast when the endpoint within an otlp config does not have a port specified.

The loadbalancingexporter config has the otlp exporter config as a dependency, however, the loadbalancing exporter does not define a port on the otlpexporter config in two places:

  • default config from factory
  • testdata contents

This is currently a blocker to the contrib tests for the PR to resolve issue 9505

Relates to:
open-telemetry/opentelemetry-collector#9523
#31371
#31381

Link to tracking Issue:
otel-collector-contrib: issue 31426
Arises from otel-collector issue 9505

Testing: Used replace to test loadbalancingexporter changes pass tests successfully when using the otlpexporter changes from PR

@atmask atmask requested a review from jpkrohling as a code owner February 27, 2024 04:26
@atmask atmask requested a review from a team February 27, 2024 04:26
Copy link

linux-foundation-easycla bot commented Feb 27, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link
Member

@TylerHelmuth TylerHelmuth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need a changelog for this change since "placeholder" would never have worked anyways.

@atmask
Copy link
Contributor Author

atmask commented Feb 27, 2024

Before I remove the changelog entry can this PR get labelled with the "Skip Changelog" so that the checks do not fail

@atmask atmask force-pushed the loadbalancingexporter-otlp-port branch from ddb5eb4 to 23a5c41 Compare February 27, 2024 20:45
@crobert-1 crobert-1 added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Feb 27, 2024
@atmask atmask force-pushed the loadbalancingexporter-otlp-port branch from a6f7043 to ff1e974 Compare February 28, 2024 00:18
@TylerHelmuth TylerHelmuth merged commit cea1de2 into open-telemetry:main Feb 28, 2024
@github-actions github-actions bot added this to the next release milestone Feb 28, 2024
@atmask atmask deleted the loadbalancingexporter-otlp-port branch February 28, 2024 02:14
XinRanZhAWS pushed a commit to XinRanZhAWS/opentelemetry-collector-contrib that referenced this pull request Mar 13, 2024
… unit test (open-telemetry#31425)

**Description:** 
As described in the otel-collector [issue
9505](open-telemetry/opentelemetry-collector#9505),
the otlpexporter does not function correctly if no port is defined. To
resolve this, the otlp config validation has been updated to fail fast
when the endpoint within an otlp config does not have a port specified.

The loadbalancingexporter config has the otlp exporter config as a
dependency, however, the loadbalancing exporter does not define a port
on the otlpexporter config in two places:
- default config from factory
- testdata contents

This is currently a blocker to the contrib tests for the
[PR](open-telemetry/opentelemetry-collector#9632)
to resolve issue 9505

Relates to:
open-telemetry/opentelemetry-collector#9523

open-telemetry#31371

open-telemetry#31381


**Link to tracking Issue:** 
otel-collector-contrib: [issue
31426](open-telemetry#31426)
Arises from otel-collector [issue
9505](open-telemetry/opentelemetry-collector#9505)

**Testing:** Used `replace` to test loadbalancingexporter changes pass
tests successfully when using the otlpexporter changes from
[PR](open-telemetry/opentelemetry-collector#9632)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exporter/loadbalancing Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants