Skip to content

TRACING-5364: RHOSDT 3.6 add tailsampling #93290

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pavolloffay
Copy link
Member

Version(s):

OCP 4.12-4.19
RHOSDT 3.6

The feature is tech-preview.

Issue:

https://issues.redhat.com/browse/TRACING-5364

Link to docs preview:

QE review:

  • QE has approved this change.

Additional information:

@openshift-ci-robot
Copy link

openshift-ci-robot commented May 13, 2025

@pavolloffay: This pull request references TRACING-5364 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.20.0" version, but no target version was set.

In response to this:

Version(s):

OCP 4.12-4.19
RHOSDT 3.6

The feature is tech-preview.

Issue:

https://issues.redhat.com/browse/TRACING-5364

Link to docs preview:

QE review:

  • QE has approved this change.

Additional information:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label May 13, 2025
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 13, 2025
Copy link

openshift-ci bot commented May 13, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 13, 2025
@pavolloffay
Copy link
Member Author

/test all

@ocpdocs-previewbot
Copy link

<6> Policy to sample based on number attributes (resource and record).
<7> Policy to sample a percentage of traces.
<8> Policy to sample based upon the status code (OK, ERROR or UNSET).
<9> Policy to sample based on string attributes (resource and record) value matches, both exact and regex value matches are supported.
Copy link
Collaborator

Choose a reason for hiding this comment

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

🤖 [error] RedHat.TermsErrors: Use 'regular expression' rather than 'regex'. For more information, see RedHat.TermsErrors.

Copy link

openshift-ci bot commented May 13, 2025

@pavolloffay: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/validate-portal 7feb7f0 link true /test validate-portal

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Comment on lines +762 to +766
Each policy will result in a decision, and the processor will evaluate them to make a final decision:

* When there's a "drop" decision, the trace is not sampled;
* When there's a "sample" decision, the trace is sampled;
* In all other cases, the trace is NOT sampled
Copy link
Contributor

@max-cx max-cx May 15, 2025

Choose a reason for hiding this comment

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

@pavolloffay, are decisions to drop or sample individual traces anyhow visible to the user (like in a log or UI?) or is this processor, loosely speaking, a black box system?

I see that there is some statistical tracking available, but I'm wondering about inspecting specific traces.

Copy link
Member Author

Choose a reason for hiding this comment

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

There are metrics exposed by the processor which can help to understand its behavior https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/tailsamplingprocessor#tracking-sampling-policy

It would be maybe good to document them. Do you want me to update the PR or do you prefer to do it yourself?

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you. Let me try. If it's too difficult for me, I'll ask for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants