Skip to content

Commit

Permalink
feat(core): remove deprecated samplers
Browse files Browse the repository at this point in the history
  • Loading branch information
pichlermarc committed Jan 10, 2025
1 parent 4a6021a commit ce60103
Show file tree
Hide file tree
Showing 14 changed files with 5 additions and 740 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ For semantic convention package changes, see the [semconv CHANGELOG](packages/se
* chore!: update typescript to version `5.0.4` [#5145](https://github.com/open-telemetry/opentelemetry-js/pull/5145) @david-luna
* (user-facing) dropped support for `typescript@<5.0.4`
* (user-facing) all packages published from this repository will from now on drop support for old versions of `typescript` in minor releases. We will only drop support for versions that are older than 2 years.
* feat(core)!: remove deprecated samplers [#????](https://github.com/open-telemetry/opentelemetry-js/pull/????) @pichlermarc
* (user-facing): deprecated `AlwaysOnSampler` has moved to `@opentelemetry/sdk-trace-base`
* (user-facing): deprecated `AlwaysOffSampler` has moved to `@opentelemetry/sdk-trace-base`
* (user-facing): deprecated `TraceIdRatioSampler` has moved to `@opentelemetry/sdk-trace-base`
* (user-facing): deprecated `TraceIdRatioSampler` has moved to `@opentelemetry/sdk-trace-base`

### :rocket: (Enhancement)

Expand Down
4 changes: 0 additions & 4 deletions packages/opentelemetry-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ export {
getRPCMetadata,
setRPCMetadata,
} from './trace/rpc-metadata';
export { AlwaysOffSampler } from './trace/sampler/AlwaysOffSampler';
export { AlwaysOnSampler } from './trace/sampler/AlwaysOnSampler';
export { ParentBasedSampler } from './trace/sampler/ParentBasedSampler';
export { TraceIdRatioBasedSampler } from './trace/sampler/TraceIdRatioBasedSampler';
export {
isTracingSuppressed,
suppressTracing,
Expand Down
33 changes: 0 additions & 33 deletions packages/opentelemetry-core/src/trace/sampler/AlwaysOffSampler.ts

This file was deleted.

33 changes: 0 additions & 33 deletions packages/opentelemetry-core/src/trace/sampler/AlwaysOnSampler.ts

This file was deleted.

143 changes: 0 additions & 143 deletions packages/opentelemetry-core/src/trace/sampler/ParentBasedSampler.ts

This file was deleted.

This file was deleted.

32 changes: 0 additions & 32 deletions packages/opentelemetry-core/test/trace/AlwaysOffSampler.test.ts

This file was deleted.

32 changes: 0 additions & 32 deletions packages/opentelemetry-core/test/trace/AlwaysOnSampler.test.ts

This file was deleted.

Loading

0 comments on commit ce60103

Please sign in to comment.