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

Update SamplingParameters #1749

Merged
merged 3 commits into from
Mar 30, 2021
Merged

Conversation

MrAlias
Copy link
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

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
trace/context.go Show resolved Hide resolved
@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