Skip to content

Update SamplingParameters#1749

Merged
MrAlias merged 3 commits intoopen-telemetry:mainfrom
MrAlias:sampling-params
Mar 30, 2021
Merged

Update SamplingParameters#1749
MrAlias merged 3 commits intoopen-telemetry:mainfrom
MrAlias:sampling-params

Conversation

@MrAlias
Copy link
Copy Markdown
Contributor

@MrAlias MrAlias commented Mar 29, 2021

Remove HasRemoteParent fields from SamplingParameters. The HasRemoteParent field is a duplicate of the Remote field of the parent span context contained in the ParentContext.

Change the ParentContext field from storing a SpanContext to a context.Context that holds the parent span. This is to conform with the OpenTelemetry specification.

Resolves #1727

Remove HasRemoteParent fields from SamplingParameters. The
HasRemoteParent field is a duplicate of the Remote field of the parent
span context contained in the ParentContext.

Change the `ParentContext` field from storing a `SpanContext` to a
`context.Context` that holds the parent span. This is to conform with
the OpenTelemetry specification and resolve open-telemetry#1727.
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 29, 2021

Codecov Report

Merging #1749 (542bf16) into main (97501a3) will decrease coverage by 0.0%.
The diff coverage is 100.0%.

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #1749     +/-   ##
=======================================
- Coverage   78.0%   78.0%   -0.1%     
=======================================
  Files        132     132             
  Lines       6944    6948      +4     
=======================================
+ Hits        5420    5422      +2     
- Misses      1274    1276      +2     
  Partials     250     250             
Impacted Files Coverage Δ
sdk/trace/sampling.go 93.9% <100.0%> (+0.1%) ⬆️
sdk/trace/span.go 90.3% <100.0%> (-0.1%) ⬇️
trace/context.go 100.0% <100.0%> (ø)
exporters/otlp/otlpgrpc/connection.go 86.9% <0.0%> (-1.9%) ⬇️

@MrAlias MrAlias added this to the RC1 milestone Mar 29, 2021
@MrAlias MrAlias self-assigned this Mar 29, 2021
Comment thread sdk/trace/sampling.go
Comment thread trace/context.go
@MrAlias MrAlias merged commit 20c93b0 into open-telemetry:main Mar 30, 2021
@MrAlias MrAlias deleted the sampling-params branch March 30, 2021 17:34
@MrAlias MrAlias mentioned this pull request Apr 23, 2021
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.

Sampling parameters require a Context with an embedded Span

3 participants