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

fix: trace sampling rules order #125

Merged
merged 3 commits into from
May 28, 2024
Merged

Conversation

dmehala
Copy link
Collaborator

@dmehala dmehala commented May 27, 2024

Description

Reset trace sampling rules legacy order.

Reset trace sampling rules legacy order.
@dmehala dmehala requested a review from a team as a code owner May 27, 2024 12:18
@pr-commenter
Copy link

pr-commenter bot commented May 27, 2024

Benchmarks

Benchmark execution time: 2024-05-28 09:18:43

Comparing candidate commit cb02455 in PR branch dmehala/fix-trace-sampling-rule-orders with baseline commit 0ada79d in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics.

Copy link

@pablomartinezbernardo pablomartinezbernardo left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +48 to +49
return Error{Error::TRACE_SAMPLING_RULES_INVALID_JSON,
"Missing \"sample_rate\" field"};

Choose a reason for hiding this comment

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

qq for this and other new error handling: Is a default value set somewhere? Or will parsing now fail when it didn't before?

Copy link
Collaborator Author

@dmehala dmehala May 28, 2024

Choose a reason for hiding this comment

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

Parsing will fail, those fields are mandatory.

src/datadog/config_manager.cpp Outdated Show resolved Hide resolved
Co-authored-by: pablomartinezbernardo <134320516+pablomartinezbernardo@users.noreply.github.com>
@dmehala dmehala merged commit f6b9333 into main May 28, 2024
22 checks passed
@dmehala dmehala deleted the dmehala/fix-trace-sampling-rule-orders branch May 28, 2024 09:23
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