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

[GRPC] Fix max span handling in client interceptor #1861

Merged
merged 2 commits into from
Jun 27, 2023
Merged

[GRPC] Fix max span handling in client interceptor #1861

merged 2 commits into from
Jun 27, 2023

Conversation

ckoehn
Copy link
Contributor

@ckoehn ckoehn commented Jun 26, 2023

What does this pull request do?

This change fixes a bug when the maximum amount of spans in a transaction is already reached.

I'm not quite sure about the test though. I was not able to create a functional gRPC test environment on my local machine.

Related issues

Closes #1832

@github-actions github-actions bot added agent-python community Issues opened by the community triage Issues awaiting triage labels Jun 26, 2023
Copy link
Contributor

@basepi basepi left a comment

Choose a reason for hiding this comment

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

This looks perfect! I'll let @beniwohli take a look as well and we'll get this merged.

@basepi basepi requested a review from beniwohli June 26, 2023 21:01
@basepi
Copy link
Contributor

basepi commented Jun 26, 2023

Looks like there's a test failure against 3.11 with the latest grpc. You can ignore the mysqlclient failure, that appears to be unrelated to your changes.

@ckoehn
Copy link
Contributor Author

ckoehn commented Jun 26, 2023

Thanks for the quick reply. I was able to fix the grpc test.

Copy link
Contributor

@beniwohli beniwohli left a comment

Choose a reason for hiding this comment

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

Awesome, nice fix!

@basepi basepi enabled auto-merge (squash) June 27, 2023 18:05
@basepi
Copy link
Contributor

basepi commented Jun 27, 2023

@elasticmachine, run elasticsearch-ci/docs

@basepi basepi merged commit 0171e9f into elastic:main Jun 27, 2023
@ckoehn ckoehn deleted the fix/max-span-handling-in-grpc-client branch June 28, 2023 12:49
@ckoehn
Copy link
Contributor Author

ckoehn commented Jun 29, 2023

Do you already know when this will be included in a release? We are currently affected by it in our production environments and mitigated it to some degree by increasing the max spans per transaction to 1k. But some of our processes occasionally die due to this.

@basepi
Copy link
Contributor

basepi commented Jun 29, 2023

I think we'll probably release early next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-python community Issues opened by the community triage Issues awaiting triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DroppedSpan has no attribute 'transaction' error in grpc/client_interceptor.py
3 participants