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 AWS Redshift databases #1859

Open
RonanFelipe opened this issue Jun 23, 2023 · 2 comments
Open

Add instrumentation for AWS Redshift databases #1859

RonanFelipe opened this issue Jun 23, 2023 · 2 comments
Labels

Comments

@RonanFelipe
Copy link

I followed the basic steps described on the documentation to connect my Flask application. My application connects with a MySql database and with Redshift database. On Kibana web page, when analyzing the data I can see the query statement for the MySql querys, but I can't see the Redshift query statement. On my application, both database connection are made with SQLAlchemy. So is just a question, does it work with Redshift? Maybe I have to check some of my settings, read some advanced topics.

I tried to create a span (@elasticapm.capture_span()) on the Redshift method that execute the query to be more specific and visualize what was happening, but still on kibana it show my Redshift span but no query statement.

**Environment **

  • OS: Ubuntu 22.04
  • Python version: 3.11
  • Framework and version: Flask 2.2
  • APM Server version:
  • Agent version: 6.16.2
@github-actions github-actions bot added agent-python community Issues opened by the community triage Issues awaiting triage labels Jun 23, 2023
@basepi
Copy link
Contributor

basepi commented Jun 26, 2023

We don't instrument SQLAlchemy directly; rather, we instrument the underlying database libraries. It appears we don't have an instrumentation for Redshift -- are you seeing a span for the Redshift queries at all? Or only when you use @elasticapm.capture_span()?

capture_span by itself definitely won't get you the query information -- that's specific to our database instrumentations. I think the answer here is to add an instrumentation for Redshift.

@basepi basepi added feature instrumentation and removed triage Issues awaiting triage labels Jun 26, 2023
@basepi basepi changed the title Can't see Redshift database statements on kibana Add instrumentation for AWS Redshift databases Jun 26, 2023
@RonanFelipe
Copy link
Author

RonanFelipe commented Jun 26, 2023

are you seeing a span for the Redshift queries at all?

No, I was not. Then I created a span in the method that make the query execute() to see If I could get anything, I named it 'redshift connection'. After this I could see the span but no query information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants