We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ae9a6d commit 1795c3fCopy full SHA for 1795c3f
instrument/doc.go
@@ -21,9 +21,10 @@ Then call the functions:
21
22
For testing, you can create your own mock instrument and use it:
23
func TestSomething (t *testing.T) {
24
+ log := testutil.TL(t)
25
old := instrument.GetGlobalClient()
26
t.Cleanup(func(){ instrument.SetGlobalClient(old) })
- instrument.SetGlobalClient(myMockClient)
27
+ instrument.SetGlobalClient(instrument.MockClient{Logger: log})
28
}
29
*/
30
package instrument
0 commit comments