Skip to content

ref(spans): Gate description inference behind boolean flag#6115

Open
loewenheim wants to merge 2 commits into
masterfrom
sebastian/infer-description-flag
Open

ref(spans): Gate description inference behind boolean flag#6115
loewenheim wants to merge 2 commits into
masterfrom
sebastian/infer-description-flag

Conversation

@loewenheim

Copy link
Copy Markdown
Contributor

Small follow-up to #6112. That PR introduced a flag for name inference; this one does the same for description inference. It's not strictly speaking necessary because nothing goes wrong if we run the inference unnecessarily (it never overwrites existing descriptions), but I like it for symmetry and clarity.

@loewenheim loewenheim requested a review from a team as a code owner June 22, 2026 09:04
@loewenheim loewenheim self-assigned this Jun 22, 2026
Comment on lines +54 to +55
infer_ip: false,
infer_user_agent: false,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Actually, do we not want to do these for OTEL spans?

Base automatically changed from sebastian/name-synthesis-pii to master June 22, 2026 09:15
@loewenheim loewenheim force-pushed the sebastian/infer-description-flag branch from c51e659 to 8dab369 Compare June 22, 2026 12:35

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 8dab369. Configure here.

Comment thread relay-server/src/processing/spans/process.rs
// By default, we only want to infer descriptions for V2 spans.
let default_settings = Settings {
infer_description: true,
..Default::default()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why not have a manual Default impl with infer_description: true? Is there a use case where we want the field to be false by default?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants