opentelemetry-rust icon indicating copy to clipboard operation
opentelemetry-rust copied to clipboard

Perform sampling as explained in the specification.

Open hdost opened this issue 3 years ago • 1 comments

  • Sampling should always defer to the existing sampler. The logic before this patch reflected something similar to what is described in the ParentBased sampler.

Relates #800

hdost avatar Jul 14 '22 19:07 hdost

Codecov Report

Base: 66.6% // Head: 66.5% // Decreases project coverage by -0.0% :warning:

Coverage data is based on head (c91f56d) compared to base (ffe1fbb). Patch has no changes to coverable lines.

:exclamation: Current head c91f56d differs from pull request most recent head a0f8e04. Consider uploading reports for the commit a0f8e04 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##            main    #839     +/-   ##
=======================================
- Coverage   66.6%   66.5%   -0.1%     
=======================================
  Files        113     113             
  Lines       8798    8712     -86     
=======================================
- Hits        5861    5799     -62     
+ Misses      2937    2913     -24     
Impacted Files Coverage Δ
opentelemetry-sdk/src/trace/tracer.rs 92.5% <ø> (+1.5%) :arrow_up:
opentelemetry-jaeger/src/exporter/config/agent.rs 58.0% <0.0%> (-2.6%) :arrow_down:
...emetry-jaeger/src/exporter/config/collector/mod.rs 56.5% <0.0%> (-1.8%) :arrow_down:
opentelemetry-sdk/src/testing/trace.rs 69.3% <0.0%> (-1.2%) :arrow_down:
opentelemetry-api/src/trace/span_context.rs 87.2% <0.0%> (-1.1%) :arrow_down:
opentelemetry-jaeger/src/lib.rs 93.0% <0.0%> (-0.4%) :arrow_down:
opentelemetry-aws/src/lib.rs 89.8% <0.0%> (ø)
opentelemetry-jaeger/src/exporter/config/mod.rs 75.5% <0.0%> (ø)
...aeger/src/exporter/config/collector/http_client.rs 22.5% <0.0%> (ø)
...elemetry-sdk/src/metrics/aggregators/last_value.rs 46.2% <0.0%> (+0.8%) :arrow_up:
... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar Jul 14 '22 20:07 codecov[bot]

@hdost want some help making the last changes? Think this is the only blocker to releasing v0.18

jtescher avatar Aug 14 '22 19:08 jtescher

@hdost want some help making the last changes? Think this is the only blocker to releasing v0.18

I can push out a change tomorrow 👍🏼

hdost avatar Aug 16 '22 15:08 hdost

Sorry again for the delay on this. All should be good now.

hdost avatar Aug 17 '22 17:08 hdost

Sorry again for the delay on this. All should be good now.

Unsure why i have an issue with msrv...

hdost avatar Aug 17 '22 18:08 hdost

Because there was a new release of the h2 library recently, and it requires 1.56. I don't think our 1.49 is tenable anymore, we should just bump to 1.56 like the rest of the ecosystem.

djc avatar Aug 17 '22 20:08 djc

Because there was a new release of the h2 library recently, and it requires 1.56. I don't think our 1.49 is tenable anymore, we should just bump to 1.56 like the rest of the ecosystem.

Indeed 😞 @jtescher @TommyCpp what are your thoughts?

hdost avatar Aug 18 '22 11:08 hdost

@jtescher @TommyCpp what are your thoughts?

I'm in favor of going to 1.56 and 2021 edition 👍

jtescher avatar Aug 18 '22 16:08 jtescher

Agreed. I think tracing also have a PR to bump the MSRV too

TommyCpp avatar Aug 18 '22 16:08 TommyCpp

Agreed. I think tracing also have a PR to bump the MSRV too

It appears so though it's been open for a month i feel they probably will. , should we open a separate PR for MSRV increase?

hdost avatar Aug 22 '22 09:08 hdost

See #866.

djc avatar Aug 22 '22 09:08 djc

😢

error: package `async-global-executor v2.3.0` cannot be built because it requires rustc 1.59 or newer, while the currently active rustc version is 1.56.1

hdost avatar Sep 06 '22 13:09 hdost

@hdost if you merge main you'll pick up the script changes to get MSRV passing again

jtescher avatar Sep 06 '22 17:09 jtescher

Finally! 👍🏼 Things are passing

hdost avatar Sep 09 '22 09:09 hdost

@hdost if you want to become an approver (requirements) I'm happy to sponsor you, just have open an issue here to get added.

jtescher avatar Sep 13 '22 03:09 jtescher

@hdost if you want to become an approver (requirements) I'm happy to sponsor you, just have open an issue here to get added.

+1 if you need another sponsor I can help. Again thanks for all the work on the sampling side!

TommyCpp avatar Sep 13 '22 04:09 TommyCpp