File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ Release Notes.
25
25
* Fix wrong tracing context when trace have been sampled.
26
26
* Fix enhance param error when there are multiple params.
27
27
* Fix lost trace when multi middleware ` handlerFunc ` in ` gin ` plugin.
28
+ * Fix DBQueryContext execute error in ` sql ` plugin.
28
29
29
30
#### Issues and PR
30
31
- All issues are [ here] ( https://github.com/apache/skywalking/milestone/197?closed=1 )
Original file line number Diff line number Diff line change @@ -54,6 +54,13 @@ func getInstanceInfo(caller interface{}) InstanceInfo {
54
54
if ! ok || instance == nil {
55
55
return nil
56
56
}
57
- info := instance .GetSkyWalkingDynamicField ().(InstanceInfo )
57
+ df := instance .GetSkyWalkingDynamicField ()
58
+ if df == nil {
59
+ return nil
60
+ }
61
+ info , ok := df .(InstanceInfo )
62
+ if ! ok {
63
+ return nil
64
+ }
58
65
return info
59
66
}
You can’t perform that action at this time.
0 commit comments