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

Remove WithRecord() option from trace.SpanOption when starting a span #1660

Merged
merged 11 commits into from
Mar 9, 2021

Conversation

evantorrie
Copy link
Contributor

Fixes #192

This PR simply removes the WithRecord() option completely.
Decisions on whether a span will record events are currently left in the purview of the Sampler at initial Span creation time.

For future reference, there are unresolved OTEPs and specification issues which may influence the design of Span recording/sampling.

See open-telemetry/oteps#115 and open-telemetry/opentelemetry-specification#307.

This brings the trace API into conformance with the specification.
@codecov
Copy link

codecov bot commented Mar 5, 2021

Codecov Report

Merging #1660 (e90e6f5) into main (65c7de2) will increase coverage by 0.0%.
The diff coverage is 100.0%.

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #1660   +/-   ##
=====================================
  Coverage   77.2%   77.2%           
=====================================
  Files        128     128           
  Lines       6799    6788   -11     
=====================================
- Hits        5254    5246    -8     
+ Misses      1294    1291    -3     
  Partials     251     251           
Impacted Files Coverage Δ
bridge/opentracing/bridge.go 47.7% <ø> (-0.2%) ⬇️
bridge/opentracing/internal/mock.go 74.3% <ø> (-0.3%) ⬇️
oteltest/harness.go 82.0% <ø> (-0.8%) ⬇️
trace/config.go 60.6% <ø> (-0.6%) ⬇️
sdk/trace/span.go 90.9% <100.0%> (+<0.1%) ⬆️
exporters/otlp/otlpgrpc/connection.go 88.7% <0.0%> (+1.8%) ⬆️

Copy link
Contributor

@MrAlias MrAlias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

CHANGELOG.md Outdated Show resolved Hide resolved
sdk/trace/span.go Show resolved Hide resolved
@MrAlias MrAlias merged commit 3684191 into open-telemetry:main Mar 9, 2021
@MrAlias MrAlias mentioned this pull request Mar 18, 2021
@pellared pellared added this to the untracked milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove WithRecording option from trace API
5 participants