Skip to content

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

Merged
MrAlias merged 11 commits intoopen-telemetry:mainfrom
evantorrie:remove-with-record
Mar 9, 2021
Merged

Remove WithRecord() option from trace.SpanOption when starting a span#1660
MrAlias merged 11 commits intoopen-telemetry:mainfrom
evantorrie:remove-with-record

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.

🚀

@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