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

Set wait for ready in Jaeger gRPC exporter #899

Merged
merged 2 commits into from
Apr 30, 2020

Conversation

pavolloffay
Copy link
Member

@pavolloffay pavolloffay commented Apr 30, 2020

Description:

gRPC can drop a couple of initial RPCs at the beginning of the connection. Wait for ready should prevent it.

Some resources:

This feature is needed in Jaeger to make crossdock tests pass. Sometimes Jaeger exporter drops first batches that is causing test failures. I have tested this PR in jaegertracing/jaeger#2211

Link to tracking Issue:

Testing: < Describe what testing was performed and which tests were added.>

Documentation: < Describe the documentation added.>

@@ -80,7 +80,7 @@ func (s *protoGRPCSender) pushTraceData(
for _, batch := range batches {
_, err = s.client.PostSpans(
ctx,
&jaegerproto.PostSpansRequest{Batch: *batch})
&jaegerproto.PostSpansRequest{Batch: *batch}, grpc.WaitForReady(true))
Copy link
Member Author

Choose a reason for hiding this comment

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

This has to be configurable otherwise tests are failing.

Any objections on adding to the main gRPC config?

Copy link
Member

Choose a reason for hiding this comment

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

I would like to read the documentation before saying anything. Will do that in 30 mins and confirm

@bogdandrutu
Copy link
Member

exporter/jaegerexporter/exporter_test.go: Expected no more than 3 groups, got 4

impi verification failed: Found 1 errors
Makefile:126: recipe for target 'impi' failed
make: *** [impi] Error 1
make: *** Waiting for unfinished jobs....
Static check finished successfully

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
@pavolloffay pavolloffay force-pushed the grpc-wait-for-ready branch from b9b2f78 to b5fbaab Compare April 30, 2020 16:04
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
@pjanotti pjanotti merged commit 6e144e8 into open-telemetry:master Apr 30, 2020
wyTrivail pushed a commit to mxiamxia/opentelemetry-collector that referenced this pull request Jul 13, 2020
* Make wait for ready configurable in gRPC exporters

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Fix

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
* Adds Database-specific semantic attributes.

* Add CHANGELOG

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
Troels51 pushed a commit to Troels51/opentelemetry-collector that referenced this pull request Jul 5, 2024
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.

3 participants