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

contrib/sql: Changing Span Type from db to sql #281

Merged
merged 7 commits into from
Jul 26, 2018
Merged

Conversation

erichgess
Copy link

The Span Type being set for SQL traces was db, this is incorrect, it ought to be sql. Having the wrong SpanType impedes certain functionality.

Erich Ess added 3 commits July 26, 2018 13:43
The SQL integration was sending the wrong span type which impacts
functionality.
Updated SQL tests so that when there is a tag mismatch between the
expected tag value and the actual tag value, the tag name is printed.
This is to help with debugging.
The unit tests were expected `db` for the Span Type.  They should expect
`sql`.
@palazzem palazzem added the apm:ecosystem contrib/* related feature requests or bugs label Jul 26, 2018
@palazzem palazzem changed the title sql: Changing Span Type from db to sql contrib/sql: Changing Span Type from db to sql Jul 26, 2018
@palazzem palazzem added this to the 1.1.0 milestone Jul 26, 2018
Copy link
Contributor

@palazzem palazzem left a comment

Choose a reason for hiding this comment

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

Great, thank you very much!

@erichgess erichgess merged commit a5fcac5 into v1 Jul 26, 2018
@erichgess erichgess deleted the erich/sql-span-type branch July 26, 2018 19:28
mingrammer pushed a commit to mingrammer/dd-trace-go that referenced this pull request Dec 22, 2020
* contrib/database/sql: changed the span type from `db` to `sql`

The SQL integration was sending the wrong span type which impacts
functionality.

* /contrib/internal/sqltest: print out the Tag name

Updated SQL tests so that when there is a tag mismatch between the
expected tag value and the actual tag value, the tag name is printed.
This is to help with debugging.

* contrib/database/sql&contrib/jmoiron/sqlx fixed expected spantypes.

The unit tests were expected `db` for the Span Type.  They should expect
`sql`.

* contrib/databases/sql: Fixed a typo in a comment.

* contrib/database/sql: Changed SQLSpanType to const.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:ecosystem contrib/* related feature requests or bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants