1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-23 22:34:47 +02:00

Allow setting the name of the span after starting it (#102)

* Allow setting the name of the span after starting it

* Add test for setting the name of the span
This commit is contained in:
Krzesimir Nowak
2019-08-26 20:53:12 +02:00
committed by rghetia
parent 887748491b
commit 3fc6025071
10 changed files with 180 additions and 29 deletions

View File

@@ -72,6 +72,10 @@ func (mockSpan) IsRecordingEvents() bool {
func (mockSpan) SetStatus(status codes.Code) {
}
// SetName does nothing.
func (mockSpan) SetName(name string) {
}
// SetError does nothing.
func (mockSpan) SetError(v bool) {
}