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

add instrumentation for redis.asyncio #1807

Merged
merged 4 commits into from Apr 26, 2023

Conversation

beniwohli
Copy link
Contributor

What does this pull request do?

aioredis has been discontinued and moved into redis.asyncio, but with enough changes to warrant its own instrumentation.

Related issues

Closes #1799

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 good. My only question (without having looked at the async redis code) is whether we should be using AsyncAbstractInstrumentedModule or awaiting any of these calls? Outside of the async_capture_span this module is not very async. That may be correct, especially with passing integration tests, but I wanted to point it out.

@beniwohli
Copy link
Contributor Author

@basepi huh, great catch... I based this on the aioredis instrumentation, but obviously didn't look at it closely enough. I'll have to investigate, but this looks like the aioredis instrumentation was faulty to begin with.

@beniwohli beniwohli merged commit 8bc7922 into elastic:main Apr 26, 2023
95 checks passed
APM-Agents (OLD) automation moved this from In Progress to Done Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

Instrument redis.asyncio
2 participants