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

Using xray-agent 3.3.3 in AML2 on tomcat server #108

Open
admin-studydeets opened this issue Sep 25, 2021 · 2 comments
Open

Using xray-agent 3.3.3 in AML2 on tomcat server #108

admin-studydeets opened this issue Sep 25, 2021 · 2 comments
Assignees
Labels
question Further information is requested stale

Comments

@admin-studydeets
Copy link

admin-studydeets commented Sep 25, 2021

i have added the agent in classpath and also plugins. but we are unablke to see SQL Traces. Please let me know if there is any configuration file that we need to enable like xray-agent.json to view the SQL traces and examine them. We are able to see http requests but not SQL Queries.

X-ray is getting initialized by below

CATALINA_OPTS='-Xms512M -Xmx1G -javaagent:/path to disco/disco-java-agent.jar=pluginPath=/path to disco/disco-plugins'

@willarmiros
Copy link
Contributor

willarmiros commented Sep 27, 2021

Hi @admin-studydeets,

What client are you using to perform the SQL queries? Is it a JDBC-based client? Please try enabling debug logging and posting the complete logs for a few requests - e.g. including the capturing of a server request and HTTP request, where you would expect the SQL queries to be captured.

FWIW, you can also try following our the AWS Distro for OpenTelemetry auto-instrumentation agent for Java instead. You can follow this guide to get started, and it shouldn't have the same instrumentation issues with SQL.

@willarmiros willarmiros self-assigned this Sep 27, 2021
@willarmiros willarmiros added the question Further information is requested label Sep 27, 2021
@stale
Copy link

stale bot commented Jan 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in next 7 days. Thank you for your contributions.

@stale stale bot added the stale label Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stale
Projects
None yet
Development

No branches or pull requests

2 participants