-
Notifications
You must be signed in to change notification settings - Fork 33
Conversation
Co-authored-by: zhang-wei <zhangwei24@apache.org>
@@ -0,0 +1,40 @@ | |||
# Go2Sky with Gorm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this doc should be linked from https://github.com/SkyAPM/go2sky-plugins#trace-plugins
gorm/gorm.go
Outdated
|
||
span.SetComponent(s.getComponent()) | ||
span.SetSpanLayer(agentv3.SpanLayer_Database) | ||
span.Tag(go2sky.TagDBType, string(s.sqlType)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean to change this tag TagDBBindVariables
in go2sky into tagDbSqlParameters = "db.sql.parameters"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
gorm/gorm.go
Outdated
span.Tag(go2sky.TagDBType, string(s.sqlType)) | ||
span.Tag(go2sky.TagDBStatement, sql) | ||
|
||
if len(vars) != 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add reportParam
and reportQuery
options like this, let the user choose. WDYT?
Should this be closed? |
Can you reopen it, or should I raise another PR? |
I opened this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@arugal Let's release 1.3.0 |
Resolves #36