aws / aws-xray-java-agent

The official AWS X-Ray Auto Instrumentation Agent for Java.
Apache License 2.0
42 stars 18 forks source link

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

Open admin-studydeets opened 2 years ago

admin-studydeets commented 2 years ago

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 commented 2 years ago

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.

stale[bot] commented 2 years ago

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.