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

End jedis span when operation actually ends #5256

Merged
merged 2 commits into from
Feb 1, 2022

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Jan 27, 2022

Part of #5061
Initially I tried to move starting/ending span from just sending the command to the methods that send the command and then wait for the result (similarly to what is attempted in #5072) but gave up on it. Jedis adds new methods too frequently, keeping method to command mappings up to date would be a pain.
This pr does not improve handling of multi() and pipelined().

@laurit laurit requested a review from a team as a code owner January 27, 2022 15:33
@laurit
Copy link
Contributor Author

laurit commented Jan 27, 2022

/easycla


private JedisRequestContext() {}

public static <T> JedisRequestContext<T> start() {
Copy link
Member

Choose a reason for hiding this comment

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

maybe something like

  • start -> attach
  • end -> endIfNotAttached
  • close -> detachAndEnd

@trask trask merged commit 8240a5f into open-telemetry:main Feb 1, 2022
@laurit laurit deleted the jedis-span-end branch February 2, 2022 09:04
RashmiRam pushed a commit to RashmiRam/opentelemetry-auto-instr-java that referenced this pull request May 23, 2022
* End jedis span when operation actually ends

* address review comments
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.

None yet

3 participants