Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sampling config for instrumentation #982

Merged
merged 19 commits into from
Sep 6, 2024

Conversation

RonFed
Copy link
Contributor

@RonFed RonFed commented Aug 4, 2024

This PR includes the high-level code handling the sampling configuration.

@RonFed RonFed changed the title Add sampling config for instrumetnation Add sampling config for instrumentation Aug 4, 2024
@RonFed RonFed marked this pull request as ready for review August 4, 2024 10:23
@RonFed RonFed requested a review from a team August 4, 2024 10:23
@RonFed
Copy link
Contributor Author

RonFed commented Aug 8, 2024

@MrAlias @damemi can you please have a look?

CHANGELOG.md Outdated Show resolved Hide resolved
sampling.go Outdated Show resolved Hide resolved
sampling.go Outdated Show resolved Hide resolved
sampling.go Outdated Show resolved Hide resolved
sampling.go Outdated Show resolved Hide resolved
instrumentation.go Outdated Show resolved Hide resolved
internal/pkg/instrumentation/probe/sampling/sampling.go Outdated Show resolved Hide resolved
internal/pkg/instrumentation/probe/sampling/sampling.go Outdated Show resolved Hide resolved
internal/pkg/instrumentation/probe/sampling/sampling.go Outdated Show resolved Hide resolved
internal/pkg/instrumentation/probe/sampling/sampling.go Outdated Show resolved Hide resolved
instrumentation.go Outdated Show resolved Hide resolved
config/sampling.go Outdated Show resolved Hide resolved
internal/pkg/instrumentation/probe/probe.go Show resolved Hide resolved
.github/dependabot.yml Outdated Show resolved Hide resolved
@RonFed
Copy link
Contributor Author

RonFed commented Aug 23, 2024

@damemi @MrAlias I addressed your comments. This is ready for another review.

Copy link
Contributor

@MrAlias MrAlias left a comment

Choose a reason for hiding this comment

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

Approving with the intent to flatten this package in a follow-up PR.

@MrAlias
Copy link
Contributor

MrAlias commented Sep 5, 2024

golang:1.22.7 just released. We need the new docker image and an offset update to unblock this.

@MrAlias MrAlias merged commit 8b7ed83 into open-telemetry:main Sep 6, 2024
24 checks passed
minimAluminiumalism pushed a commit to minimAluminiumalism/opentelemetry-go-instrumentation that referenced this pull request Sep 9, 2024
* Add sampling config for instrumetnation

* changelog

* Apply suggestions from code review

Co-authored-by: Tyler Yahn <[email protected]>

* Update sampling.go

Co-authored-by: Tyler Yahn <[email protected]>

* Update internal/pkg/instrumentation/probe/sampling/sampling.go

Co-authored-by: Tyler Yahn <[email protected]>

* fix typo in function name

* remove unnecessery function

* code review changes

* Add test for invalid sampler config

* Adjust probe load test

* update samplingRateDenominator to math.MaxUint32

* Update config/sampling.go

Co-authored-by: Mike Dame <[email protected]>

* code review fix

---------

Co-authored-by: Tyler Yahn <[email protected]>
Co-authored-by: Mike Dame <[email protected]>
MrAlias added a commit to MrAlias/opentelemetry-go-instrumentation that referenced this pull request Sep 18, 2024
* Add sampling config for instrumetnation

* changelog

* Apply suggestions from code review

Co-authored-by: Tyler Yahn <[email protected]>

* Update sampling.go

Co-authored-by: Tyler Yahn <[email protected]>

* Update internal/pkg/instrumentation/probe/sampling/sampling.go

Co-authored-by: Tyler Yahn <[email protected]>

* fix typo in function name

* remove unnecessery function

* code review changes

* Add test for invalid sampler config

* Adjust probe load test

* update samplingRateDenominator to math.MaxUint32

* Update config/sampling.go

Co-authored-by: Mike Dame <[email protected]>

* code review fix

---------

Co-authored-by: Tyler Yahn <[email protected]>
Co-authored-by: Mike Dame <[email protected]>
@MrAlias MrAlias added this to the v0.15.0-alpha milestone Oct 1, 2024
@MrAlias MrAlias mentioned this pull request Oct 1, 2024
@RonFed RonFed mentioned this pull request Oct 13, 2024
7 tasks
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.

4 participants