Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

span.IsRecording() returns true even when Sampler indicates it should be DROPPED #1664

Closed
evantorrie opened this issue Mar 5, 2021 · 1 comment · Fixed by #1750
Closed
Assignees
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
Milestone

Comments

@evantorrie
Copy link
Contributor

Currently the Go code for span.IsRecording() returns true if s.endTime.IsZero() == true.

But the default SDK's span creation function will return a span with span.endTime.IsZero() (default initialized) even if the associated Sampler.ShouldSample() function returns DROP.

Based on the current specification, DROP should result in IsRecording() == false

DROP - IsRecording() == false, span will not be recorded and all events and attributes will be dropped.

Possibly related issue in opentelemetry-specification: open-telemetry/opentelemetry-specification#1507

@MrAlias MrAlias added area:trace Part of OpenTelemetry tracing bug Something isn't working pkg:SDK Related to an SDK package release:required-for-ga labels Mar 5, 2021
@MrAlias MrAlias added this to To do in OpenTelemetry Go RC via automation Mar 5, 2021
@MrAlias MrAlias added this to the RC1 milestone Mar 5, 2021
@Aneurysm9 Aneurysm9 added the good first issue Good for newcomers label Mar 24, 2021
@bryan-aguilar
Copy link
Contributor

@Aneurysm9 I'd like to take this one on. I'll dig into the spec a bit to make sure everything is clear before starting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
No open projects
4 participants