Skip to content

Opt-in support to collect SQL queries. - #283

Merged
willarmiros merged 5 commits into
aws:masterfrom
stnor:master
Aug 4, 2021
Merged

Opt-in support to collect SQL queries.#283
willarmiros merged 5 commits into
aws:masterfrom
stnor:master

Conversation

@stnor

@stnor stnor commented May 1, 2021

Copy link
Copy Markdown
Contributor

Issue #, if available:
#28

Description of changes:
Opt-in to collect SQL via Environment or System property.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@stnor
stnor requested review from anuraaga and willarmiros as code owners May 1, 2021 19:34
@stnor

stnor commented May 1, 2021

Copy link
Copy Markdown
Contributor Author

Is there support for displaying the SQL in the trace directly? Right now it's only available in SQL tab in the subsegment.
Screenshot 2021-05-01 at 21 39 33

@willarmiros willarmiros left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the contribution @stnor! Unfortunately you're only able to see the SQL query in that tab today.

stnor and others added 3 commits May 10, 2021 23:50
…/TracingStatement.java


Changing name of system property to AWS XRAY standard.

Co-authored-by: William Armiros <54150514+willarmiros@users.noreply.github.com>

@willarmiros willarmiros left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry for missing the follow up on this, but code LGTM! Can you please include a blurb in the readme as well? https://github.com/aws/aws-xray-sdk-java#intercept-jdbc-based-sql-queries

@stnor

stnor commented Aug 4, 2021

Copy link
Copy Markdown
Contributor Author

Updated the readme, I hope it looks alright.

@willarmiros willarmiros left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks!

@willarmiros
willarmiros merged commit 297a0bf into aws:master Aug 4, 2021
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.

2 participants