Skip to content

Implement traceID-ratio and parent-based samplers in eBPF - #1150

Merged
RonFed merged 8 commits into
open-telemetry:mainfrom
RonFed:sampling_impl
Oct 19, 2024
Merged

Implement traceID-ratio and parent-based samplers in eBPF#1150
RonFed merged 8 commits into
open-telemetry:mainfrom
RonFed:sampling_impl

Conversation

@RonFed

@RonFed RonFed commented Oct 5, 2024

Copy link
Copy Markdown
Contributor

Add the eBPF side of basic samplers implementation: traceIDRatio, ParentBased, AlwaysOn and AlwasyOff.

Basic testing I did with the httpPlusDb example:
I used a test script that calls the endpoint of the application 1000 times.

Using OTEL_TRACES_SAMPLER=always_on
always_on

Using OTEL_TRACES_SAMPLER=parentbased_traceidratio, OTEL_TRACES_SAMPLER_ARG=0.1
parentBased-traceIDRatio-0 1

Using OTEL_TRACES_SAMPLER=parentbased_traceidratio, OTEL_TRACES_SAMPLER_ARG=0.01
parentBased-traceIDRatio-0 01

Split from #971
Part of #953

@RonFed RonFed changed the title Implements traceID-ratio and parent-based samplers in eBPF Implement traceID-ratio and parent-based samplers in eBPF Oct 5, 2024
@RonFed
RonFed marked this pull request as ready for review October 5, 2024 14:25
@RonFed
RonFed requested a review from a team as a code owner October 5, 2024 14:25
Comment thread Makefile

@MrAlias MrAlias left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Outside of the Makefile question, this looks good to go.

Comment thread internal/pkg/instrumentation/probe/sampling/sampling.go Outdated
Comment thread internal/pkg/instrumentation/probe/sampling/sampling_linux_test.go Outdated
Comment thread internal/pkg/instrumentation/probe/sampling/sampling_linux_test.go Outdated
@RonFed RonFed mentioned this pull request Oct 13, 2024
7 tasks
Comment thread internal/pkg/instrumentation/probe/sampling/sampling_linux_test.go Outdated
@RonFed
RonFed merged commit 83f7338 into open-telemetry:main Oct 19, 2024
@RonFed
RonFed deleted the sampling_impl branch October 19, 2024 18:14
@MrAlias MrAlias added this to the v0.16.0-alpha milestone Oct 22, 2024
@MrAlias MrAlias mentioned this pull request Oct 22, 2024
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.

2 participants