logging: add a Close function to the Tracer (#4298)

* logging: add a Close function to the Tracer

* close the Tracer when the Transport is closed
This commit is contained in:
Marten Seemann
2024-02-03 12:12:15 +07:00
committed by GitHub
parent b675e34254
commit 07ec3245bd
8 changed files with 65 additions and 1 deletions

View File

@@ -70,6 +70,12 @@ var _ = Describe("Tracing", func() {
tr2.EXPECT().Debug("foo", "bar")
tracer.Debug("foo", "bar")
})
It("traces the Close event", func() {
tr1.EXPECT().Close()
tr2.EXPECT().Close()
tracer.Close()
})
})
})