Skip to content
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

[EXPORTER] Error when grpc endpoint is empty #2507

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

HennerM
Copy link
Contributor

@HennerM HennerM commented Jan 23, 2024

Changes

It seems like there is nothing checking whether the grpc exporter is actually empty, in which case it doesn't make sense to create a gRPC channel. This causes a problem in my application where we accidentally create a GrpcExporter with empty endpoint, which we never use because of a NOOP sampler.

I believe it could be useful to log an error here, similar to when the endpoint is no valid URI.

@HennerM HennerM requested a review from a team January 23, 2024 20:02
Copy link

linux-foundation-easycla bot commented Jan 23, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: HennerM / name: Markus Hennerbichler (d1cec0b)

Copy link
Member

@lalitb lalitb left a comment

Choose a reason for hiding this comment

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

Thanks. you would also have to sign the CLA to enable merge this.

Copy link

codecov bot commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.09%. Comparing base (497eaf4) to head (de2f639).
Report is 10 commits behind head on main.

❗ Current head de2f639 differs from pull request most recent head d1cec0b. Consider uploading reports for the commit d1cec0b to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2507      +/-   ##
==========================================
- Coverage   87.12%   87.09%   -0.02%     
==========================================
  Files         200      200              
  Lines        6109     6103       -6     
==========================================
- Hits         5322     5315       -7     
- Misses        787      788       +1     

see 3 files with indirect coverage changes

Copy link
Member

@marcalff marcalff left a comment

Choose a reason for hiding this comment

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

Thanks.

@marcalff marcalff added the pr:waiting-on-cla Waiting on CLA label Jan 23, 2024
@marcalff
Copy link
Member

@HennerM

Thanks for the PR. Please sign the CLA so it can be merged.

After signing, if the CI does not detect the change, please add a comment with a single line "/easycla" command, to poke github to reevaluate.

@HennerM
Copy link
Contributor Author

HennerM commented Jan 24, 2024

Thanks @marcalff , I am just getting the CLA for my organisation through, could take a day or so

@marcalff
Copy link
Member

marcalff commented Feb 6, 2024

/easycla

@marcalff
Copy link
Member

marcalff commented Feb 6, 2024

Hi @HennerM .

Any update on the CLA ?

@HennerM
Copy link
Contributor Author

HennerM commented Feb 13, 2024

Hi @HennerM .

Any update on the CLA ?

yes unfortunately the EasyCLA landed in the spam folder of the responsible person in my organisation, but it should get through soon now

@HennerM
Copy link
Contributor Author

HennerM commented Feb 23, 2024

/easycla

@HennerM HennerM force-pushed the empty-grpc-endpoint branch from e1ce517 to d1cec0b Compare February 23, 2024 16:14
@marcalff marcalff removed the pr:waiting-on-cla Waiting on CLA label Feb 23, 2024
@marcalff marcalff enabled auto-merge (squash) February 23, 2024 17:45
@marcalff marcalff merged commit 9649ebe into open-telemetry:main Feb 23, 2024
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants