Commit Graph

31 Commits

Author SHA1 Message Date
renovate[bot] c6d53b77e1
fix(deps): update dependency org.hipparchus:hipparchus-stat to v4.0.1 (#1814)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-21 16:21:50 -07:00
renovate[bot] 1e8c9a39b5
fix(deps): update dependency org.hipparchus:hipparchus-core to v4.0.1 (#1811)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-21 15:30:03 -07:00
renovate[bot] 354dc82ffe
fix(deps): update dependency org.hipparchus:hipparchus-stat to v4 (#1807)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-21 07:50:46 +00:00
renovate[bot] 82372b7d53
fix(deps): update dependency org.hipparchus:hipparchus-core to v4 (#1806)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-21 09:42:26 +02:00
Trask Stalnaker 43b7618375
Disable sporadically failing test for now (#1795) 2025-03-14 10:09:09 -07:00
Peter Findeisen ac36bb6ede
Improving inter-operation with legacy samplers (#1629) 2025-01-06 10:31:11 -08:00
Trask Stalnaker 0d775871f4
Fix flaky test (#1623) 2024-12-24 10:27:18 -08:00
Peter Findeisen 193f1f53eb
Updating the README file (#1502) 2024-10-17 07:10:10 -07:00
Peter Findeisen 711f6177b0
Composite Samplers prototype (#1443)
Co-authored-by: Otmar Ertl <otmar.ertl@gmail.com>
2024-09-16 08:21:46 -07:00
renovate[bot] cf3589eb2f
Update errorProneVersion to v2.30.0 (#1408)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jason Plumb <jplumb@splunk.com>
2024-08-15 17:22:17 -07:00
Otmar Ertl 55ec98bffa
Assume random trace ID and set th-field only for sampled spans (#1278) 2024-05-08 13:37:43 +03:00
renovate[bot] e8e85d3650
Update dependency org.hipparchus:hipparchus-core to v3.1 (#1257)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2024-04-05 21:04:48 +00:00
renovate[bot] 483f9d1935
Update dependency org.hipparchus:hipparchus-stat to v3.1 (#1258)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-05 14:02:21 -07:00
Otmar Ertl 21eee6f25f
switch from acceptance to rejection threshold (#1130) 2023-12-12 16:22:49 -08:00
Otmar Ertl e46643159a
consistent sampler prototypes using 56 bits of randomness (#1063) 2023-10-18 06:37:55 -07:00
renovate[bot] 9e372c06dc
Update dependency org.hipparchus:hipparchus-core to v3 (#1066)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-10 16:16:05 +00:00
renovate[bot] b9be6693c1
Update dependency org.hipparchus:hipparchus-stat to v3 (#1067)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-10 09:13:43 -07:00
Otmar Ertl 105e50c9d5
improved java doc, explicit passing of invalid p-value to root sampler (#1053) 2023-09-25 11:39:00 -07:00
kes2464 3af6cf32c1
add a provider for consistent parent based probability sampler (#1005) 2023-08-18 08:14:29 -07:00
jack-berg 6453d874e9
Jfr streaming version (#721)
Resolves #707. Builds on #716. 

Turns out this wasn't a good first issue because there was some gradle
buildSrc work needed to add a file with the version that the source code
could read. Lifted the source for this from
[opentelemetry-java](https://github.com/open-telemetry/opentelemetry-java/blob/main/buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts#L144-L165).

---------

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2023-02-02 08:27:25 -06:00
Trask Stalnaker fa630d187d
Add more linting (#611) 2022-11-22 08:44:28 -08:00
dependabot[bot] d406b59cc1
Bump hipparchus-core from 2.2 to 2.3 (#503)
Bumps [hipparchus-core](https://github.com/Hipparchus-Math/hipparchus)
from 2.2 to 2.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/Hipparchus-Math/hipparchus/releases">hipparchus-core's
releases</a>.</em></p>
<blockquote>
<h2>Hipparchus 2.3</h2>
<ul>
<li>Allowing configuration of RandomPercentile in
StreamingStatistics.</li>
<li>Added new signature for
SequentialGaussNewtonOptimizer.withAPrioriData</li>
<li>Allowing to define the Cholesky decomposition thresholds.</li>
<li>Changed HessenbergTransformer visibility to public.</li>
<li>Changed SchurTransformer visibility to public.</li>
<li>Fixed wrong negation of point on the 2-sphere.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/Hipparchus-Math/hipparchus/blob/master/RELEASE-NOTES.txt">hipparchus-core's
changelog</a>.</em></p>
<blockquote>
<pre><code>          Hipparchus 2.3 RELEASE NOTES
</code></pre>
<p>The Hipparchus team is pleased to announce the release of
hipparchus-2.3</p>
<p>The Hipparchus library is a library of mathematical components. It
started as a fork of Apache Commons Math.</p>
<p>Changes in this version include:</p>
<p>New features:
o issues/205: Added new signature for
SequentialGaussNewtonOptimizer#withAPrioriData allowing
to define the Cholesky decomposition thresholds.
o issues/204:  Changed HessenbergTransformer visibility to public.
o issues/204:  Changed SchurTransformer visibility to public.</p>
<p>Fixed Bugs:
o issues/208:  Fixed wrong negation of point on the 2-sphere.
o issues/207: Allow configuration of RandomPercentile in
StreamingStatistics.</p>
<p>For complete information on Hipparchus, including instructions on how
to submit bug reports,
patches, or suggestions for improvement, see the Hipparchus website:</p>
<p><a
href="https://www.hipparchus.org/">https://www.hipparchus.org/</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="2f85d017f1"><code>2f85d01</code></a>
Updated changes documentation.</li>
<li><a
href="3a40f1ded4"><code>3a40f1d</code></a>
Updated documentation for the release.</li>
<li><a
href="880c85441d"><code>880c854</code></a>
Updated release notes.</li>
<li><a
href="80dfc92aae"><code>80dfc92</code></a>
Whitespace.</li>
<li><a
href="d6de89ce44"><code>d6de89c</code></a>
Added reference to issue number.</li>
<li><a
href="91942af863"><code>91942af</code></a>
Dropped -SNAPSHOT in version number for official release.</li>
<li><a
href="a893487b80"><code>a893487</code></a>
Fixed wrong negation of point on the 2-sphere.</li>
<li><a
href="a599e50967"><code>a599e50</code></a>
Improved test coverage.</li>
<li><a
href="e6160b4d82"><code>e6160b4</code></a>
Fixed SonarQube warnings.</li>
<li><a
href="ca57a38e8e"><code>ca57a38</code></a>
Merge branch 'issue-202'</li>
<li>Additional commits viewable in <a
href="https://github.com/Hipparchus-Math/hipparchus/compare/2.2...2.3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.hipparchus:hipparchus-core&package-manager=gradle&previous-version=2.2&new-version=2.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mateusz Rzeszutek <mrzeszutek@splunk.com>
2022-10-06 16:24:52 +02:00
dependabot[bot] 4fadcb3fb0
Bump hipparchus-stat from 2.2 to 2.3 (#502)
Bumps [hipparchus-stat](https://github.com/Hipparchus-Math/hipparchus)
from 2.2 to 2.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/Hipparchus-Math/hipparchus/releases">hipparchus-stat's
releases</a>.</em></p>
<blockquote>
<h2>Hipparchus 2.3</h2>
<ul>
<li>Allowing configuration of RandomPercentile in
StreamingStatistics.</li>
<li>Added new signature for
SequentialGaussNewtonOptimizer.withAPrioriData</li>
<li>Allowing to define the Cholesky decomposition thresholds.</li>
<li>Changed HessenbergTransformer visibility to public.</li>
<li>Changed SchurTransformer visibility to public.</li>
<li>Fixed wrong negation of point on the 2-sphere.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/Hipparchus-Math/hipparchus/blob/master/RELEASE-NOTES.txt">hipparchus-stat's
changelog</a>.</em></p>
<blockquote>
<pre><code>          Hipparchus 2.3 RELEASE NOTES
</code></pre>
<p>The Hipparchus team is pleased to announce the release of
hipparchus-2.3</p>
<p>The Hipparchus library is a library of mathematical components. It
started as a fork of Apache Commons Math.</p>
<p>Changes in this version include:</p>
<p>New features:
o issues/205: Added new signature for
SequentialGaussNewtonOptimizer#withAPrioriData allowing
to define the Cholesky decomposition thresholds.
o issues/204:  Changed HessenbergTransformer visibility to public.
o issues/204:  Changed SchurTransformer visibility to public.</p>
<p>Fixed Bugs:
o issues/208:  Fixed wrong negation of point on the 2-sphere.
o issues/207: Allow configuration of RandomPercentile in
StreamingStatistics.</p>
<p>For complete information on Hipparchus, including instructions on how
to submit bug reports,
patches, or suggestions for improvement, see the Hipparchus website:</p>
<p><a
href="https://www.hipparchus.org/">https://www.hipparchus.org/</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="2f85d017f1"><code>2f85d01</code></a>
Updated changes documentation.</li>
<li><a
href="3a40f1ded4"><code>3a40f1d</code></a>
Updated documentation for the release.</li>
<li><a
href="880c85441d"><code>880c854</code></a>
Updated release notes.</li>
<li><a
href="80dfc92aae"><code>80dfc92</code></a>
Whitespace.</li>
<li><a
href="d6de89ce44"><code>d6de89c</code></a>
Added reference to issue number.</li>
<li><a
href="91942af863"><code>91942af</code></a>
Dropped -SNAPSHOT in version number for official release.</li>
<li><a
href="a893487b80"><code>a893487</code></a>
Fixed wrong negation of point on the 2-sphere.</li>
<li><a
href="a599e50967"><code>a599e50</code></a>
Improved test coverage.</li>
<li><a
href="e6160b4d82"><code>e6160b4</code></a>
Fixed SonarQube warnings.</li>
<li><a
href="ca57a38e8e"><code>ca57a38</code></a>
Merge branch 'issue-202'</li>
<li>Additional commits viewable in <a
href="https://github.com/Hipparchus-Math/hipparchus/compare/2.2...2.3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.hipparchus:hipparchus-stat&package-manager=gradle&previous-version=2.2&new-version=2.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-06 15:45:27 +02:00
dependabot[bot] fe289f4666
Bump hipparchus-stat from 2.1 to 2.2 (#455) 2022-09-22 11:52:34 -07:00
dependabot[bot] 0a21003e6a
Bump hipparchus-core from 2.1 to 2.2 (#447) 2022-09-22 10:18:19 -07:00
Trask Stalnaker 71cac47c3e
Support traceId-based r-values (#417)
* Support traceId-based r-values

* Interface

* Fix javadoc

* Spotless

* More

* Clean

* Review
2022-08-19 10:42:28 -07:00
Otmar Ertl a26d44126a
Consistent reservoir sampling span processor (#352)
* upgraded to hipparchus 2.1

* consistent reservoir sampling span processor

* made constant package private
2022-06-15 09:35:43 -07:00
Trask Stalnaker 4ed052b79e
Add component owner (#355) 2022-06-14 12:46:08 -07:00
Otmar Ertl 6778060281
fixed #349 (#350) 2022-05-24 14:20:27 -07:00
Trask Stalnaker 412fc5a55d
Update change log for 1.13.0 (#303) 2022-04-20 14:31:58 +09:00
Otmar Ertl 0b9ab8a7d4
sampler and span processor prototype implementations for consistent sampling (#226)
* sampler and exporter implementations for consistent sampling

* improved dependencies (in particular, removed dependency on guava)

* Update consistent-sampling/src/main/java/io/opentelemetry/contrib/samplers/ConsistentParentBasedSampler.java

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>

* reverted some changes

* removed wrong immutable annotation

* added javadoc

* avoid else statements when returning

* factory methods for consistent samplers, avoid exposure of implementations

* added javadoc for AND and OR sampler composition

* replaced use of synchronized by atomic reference

* simplified thread local initialization

* removed consistent reservoir sampling

* improved comment

* removed unnecessary clipping of sampling probability

* added javadoc explaining maths of implementation

* Update consistent-sampling/src/main/java/io/opentelemetry/contrib/state/OtelTraceState.java

Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>

* Update consistent-sampling/src/main/java/io/opentelemetry/contrib/state/OtelTraceState.java

Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>

* Update consistent-sampling/src/main/java/io/opentelemetry/contrib/state/OtelTraceState.java

Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>

* Update consistent-sampling/src/main/java/io/opentelemetry/contrib/state/OtelTraceState.java

Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>

* Update consistent-sampling/src/main/java/io/opentelemetry/contrib/samplers/ConsistentComposedAndSampler.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* Update consistent-sampling/src/main/java/io/opentelemetry/contrib/samplers/ConsistentComposedOrSampler.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* Update consistent-sampling/src/main/java/io/opentelemetry/contrib/samplers/ConsistentRateLimitingSampler.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* Update consistent-sampling/src/main/java/io/opentelemetry/contrib/samplers/ConsistentParentBasedSampler.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* Update consistent-sampling/src/main/java/io/opentelemetry/contrib/samplers/ConsistentSampler.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* added component owner for consistent sampling

* Update consistent-sampling/src/main/java/io/opentelemetry/contrib/state/OtelTraceState.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* removed nonnull annotation

* renamed variable s -> pair

* renamed char parameter r -> c

* renamed method isLowerCaseNum -> isDigit

* use empty list instead of null for otherKeyValuePairs

* simplified isValueByte method

* Update consistent-sampling/src/main/java/io/opentelemetry/contrib/state/OtelTraceState.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>

* renamed variable sepPos -> separatorPos

* replaced 0. and 1. by 0.0 and 1.0

* improved readability as suggested by @trask

* removed unused methods from RandomUtil

* added javadoc

* renamed targetSpansPerNanosLimit -> targetSpansPerNanosecondLimit

* throw IllegalArgumentException instead of returning NaN + added comments

* renamed tsStartPos -> startPos and eqPos -> colonPos

* improved readability of invariant check

* added some more test cases

* fixed typo

* removed unused method

* refactored random generator

* made OtelTraceState and RandomGenerator package private and moved them to samplers package

Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
2022-04-19 22:06:15 -07:00