Skip to content

Fix OT/DD compatibility on the sql.query - #76

Merged
palazzem merged 5 commits into
masterfrom
gpolaert/sql-query
Aug 2, 2017
Merged

palazzem merged 5 commits into
masterfrom
gpolaert/sql-query

Conversation

@gpolaert

@gpolaert gpolaert commented Aug 1, 2017

Copy link
Copy Markdown
Contributor

No description provided.

@gpolaert gpolaert added the tag: do not merge Do not merge changes label Aug 1, 2017
@gpolaert
gpolaert force-pushed the gpolaert/sql-query branch from 6b8521a to d72a67d Compare August 1, 2017 11:38
@palazzem palazzem removed the tag: do not merge Do not merge changes label Aug 1, 2017

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.

In general I like that we have these try-catch statements. Mostly because it makes the code more stable especially if an underlying method fails. Rule #0: don't stop/crash the application

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.

👍 otherwise the Agent SQL Lexer is skipped /cc @tylerbenson

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.

does this code really remove the db.statement, adding sql.query?

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.

we can clean a bit the comments here: I'd say to explain why we're removing db.statement:

// TODO: remove properly the tag (immutable at this time)
// the `db.statement` tag must be removed because it will be set
// by the Datadog Trace Agent as `sql.query`; here we're removing
// a duplicate that will not be obfuscated with the current Datadog
// Trace Agent version.

@gpolaert
gpolaert force-pushed the gpolaert/sql-query branch from a7db82c to 7f9d472 Compare August 2, 2017 08:53
@palazzem
palazzem force-pushed the gpolaert/sql-query branch from 7f9d472 to 7430296 Compare August 2, 2017 09:09

@palazzem palazzem 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.

Used with success! We can use this intermediate solution before refactoring the decorator system! Thank you!

@palazzem
palazzem merged commit 093dc57 into master Aug 2, 2017
@palazzem
palazzem deleted the gpolaert/sql-query branch August 2, 2017 09:23
gpolaert added a commit that referenced this pull request Aug 2, 2017
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