You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-11-27 22:49:15 +02:00
rename finish to end (#150)
* rename finish -> end * missed a few finish -> end spots * change end back to finish for the bridge span in the openTracing bridge * fixed grammar, ran make
This commit is contained in:
committed by
rghetia
parent
e86b95c440
commit
0eb73325ce
@@ -89,7 +89,7 @@ func TestCustomStartEndTime(t *testing.T) {
|
||||
"testspan",
|
||||
trace.WithStartTime(startTime),
|
||||
)
|
||||
span.Finish(trace.WithFinishTime(endTime))
|
||||
span.End(trace.WithEndTime(endTime))
|
||||
want := []exporter.Event{
|
||||
{
|
||||
Type: exporter.START_SPAN,
|
||||
@@ -97,11 +97,11 @@ func TestCustomStartEndTime(t *testing.T) {
|
||||
String: "testspan",
|
||||
},
|
||||
{
|
||||
Type: exporter.FINISH_SPAN,
|
||||
Type: exporter.END_SPAN,
|
||||
Time: endTime,
|
||||
},
|
||||
}
|
||||
got := append(obs.Events(exporter.START_SPAN), obs.Events(exporter.FINISH_SPAN)...)
|
||||
got := append(obs.Events(exporter.START_SPAN), obs.Events(exporter.END_SPAN)...)
|
||||
diffEvents(t, got, want, "Scope")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user