You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Register our zipkinsql wrapper as a database driver
56
+
sql.Register("zipkinsql-mysql", driver)
57
+
58
+
// Connect to a MySQL database using the zipkinsql driver wrapper
59
+
db, err = sql.Open("zipkinsql-mysql", "myDSN")
60
+
```
61
+
62
+
## Usage of *Context methods
63
+
64
+
Instrumentation is possible if the context is being passed downstream in methods.
65
+
This is not only for instrumentation purposes but also a [good practice](https://medium.com/@cep21/how-to-correctly-use-context-context-in-go-1-7-8f2c0fafdf39) in go programming. `database/sql` package exposes already a set of methods that receive the context as first paramenter:
0 commit comments