span.IsRecording() returns true even when Sampler indicates it should be DROPPED #1664
Labels
area:trace
Part of OpenTelemetry tracing
bug
Something isn't working
good first issue
Good for newcomers
pkg:SDK
Related to an SDK package
Projects
Milestone
Currently the Go code for
span.IsRecording()
returns true ifs.endTime.IsZero() == true
.But the default SDK's span creation function will return a span with
span.endTime.IsZero()
(default initialized) even if the associatedSampler.ShouldSample()
function returnsDROP
.Based on the current specification,
DROP
should result inIsRecording() == false
Possibly related issue in opentelemetry-specification: open-telemetry/opentelemetry-specification#1507
The text was updated successfully, but these errors were encountered: