Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
33485d3
feat(trace): add experimental implementation of draft consistent samp…
anuraaga Aug 8, 2025
0a967ac
Update changelog
anuraaga Aug 8, 2025
1fbc1dc
git add
anuraaga Aug 8, 2025
0f1d33e
Drift
anuraaga Aug 8, 2025
b41131b
Fix folder name
anuraaga Aug 8, 2025
38ecc13
Fix
anuraaga Aug 8, 2025
acc3070
Cleanup
anuraaga Aug 14, 2025
63c6c06
Rename package
anuraaga Aug 14, 2025
3119308
README
anuraaga Aug 14, 2025
a6df902
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
anuraaga Aug 14, 2025
2b5e7c5
Cleanup
anuraaga Aug 21, 2025
7ced0a5
Factory functions
anuraaga Aug 21, 2025
7f7afdc
Doc
anuraaga Aug 21, 2025
47c3fd4
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
anuraaga Aug 21, 2025
61656b5
Hard refresh lock
anuraaga Aug 21, 2025
861ac86
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
anuraaga Aug 28, 2025
6592630
Cleanup
anuraaga Aug 28, 2025
98e5cd8
Update CHANGELOG.md
anuraaga Aug 29, 2025
b7a34e6
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
anuraaga Sep 4, 2025
fd5c24a
Merge branch 'consistent-sampling' of https://github.com/anuraaga/ope…
anuraaga Sep 4, 2025
af4bc3e
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
anuraaga Sep 11, 2025
00a00f9
Force merge package lock
anuraaga Sep 11, 2025
02c8bce
Add precision TODO
anuraaga Sep 18, 2025
04809a3
Finish
anuraaga Sep 19, 2025
ffc9bc4
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
anuraaga Sep 19, 2025
21ad9dc
Update experimental/CHANGELOG.md
trentm Sep 19, 2025
535292e
Merge branch 'main' into consistent-sampling
trentm Sep 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions CHANGELOG.md
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[This is a general question. I'm commenting here for lack of a good place to mention it.]

My head is spinning from the inconsistent (har har) use of Composite or Composable or Consistent usage in class and interface names in the spec, OTEP, and implementations. And also, a little less so, in some class name changes, e.g. ConsistentFixedThreshold in the OTEP vs. ComposableTraceIDRatioBased in the spec. I haven't read through this PR yet, but I'm guessing other API diffs between OTEP and spec will show up, e.g. threshold_reliable in the spec vs. IsAdjustedCountReliable in the OTEP.

While I don't know that the names used in the spec need to be the same names as in the implementation APIs, approaching the same names is likely desired. Are we implementing the spec here, or the Java consistent56 implementation, which seems to follow the OTEP naming (which makes sense as it was probably developed before the spec renamings)?

I'm happy to go asking about this in the OTel channels.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - I will read the spec and align with it as much as possible, sorry for missing it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious what Java (and the Rust/Go implementations that are linked to from open-telemetry/opentelemetry-specification#4466) will do. I.e. will they change their implementations to use the class names in the spec? Or change the spec to use Consistent-prefix?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the rust and go implementations (esp. the go implementation README: https://github.com/jmacd/go-sampler) I'm pretty certain CompositeSampler and Composable*Sampler naming is the intent.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked for clarification in #otel-sampling: https://cloud-native.slack.com/archives/C027DS6GZD3/p1755299016130699

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue/answer on the naming: open-telemetry/opentelemetry-specification#4640

Basically: "So the short answer is that the Specification names should be used.", but "do not strongly believe that all SDKs need the same exact names".
So, whatever names are used by a particular SDK is fine.

(Note that I would expect the OTel schema for its configuration data model would use the spec names for these samplers, when these new samplers are added to the schema. At that point there is some value to users and maintainers if the configuration names match the implementation names.)

Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ For notes on migrating to 2.x / 0.200.x see [the upgrade guide](doc/upgrade-to-2

## Unreleased

* feat(sampler-composite): Added experimental implementations of draft composite sampling spec [#5839](https://github.com/open-telemetry/opentelemetry-js/pull/5839) @anuraaga

### :boom: Breaking Changes

### :rocket: Features
Expand Down
2 changes: 2 additions & 0 deletions experimental/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ For notes on migrating to 2.x / 0.200.x see [the upgrade guide](doc/upgrade-to-2

## Unreleased

* feat(sampler-composite): Added experimental implementations of draft composite sampling spec [#5839](https://github.com/open-telemetry/opentelemetry-js/pull/5839) @anuraaga

### :boom: Breaking Changes

### :rocket: Features
Expand Down
2 changes: 1 addition & 1 deletion experimental/packages/sampler-composite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"publishConfig": {
"access": "public"
},
"version": "0.203.0",
"version": "0.205.0",
"description": "Composite samplers for OpenTelemetry tracing",
"module": "build/esm/index.js",
"esnext": "build/esnext/index.js",
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading