Skip to content

app/vlinsert/opentelemetry: reject fields with names exceeding 128 bytes#1404

Open
vadimalekseev wants to merge 2 commits into
masterfrom
otel-too-long-keys
Open

app/vlinsert/opentelemetry: reject fields with names exceeding 128 bytes#1404
vadimalekseev wants to merge 2 commits into
masterfrom
otel-too-long-keys

Conversation

@vadimalekseev
Copy link
Copy Markdown
Member

@vadimalekseev vadimalekseev commented May 11, 2026

This should prevent high memory consumption when processing deeply nested structures.

Fixes #1321
Updates #1326

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 2 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="app/vlinsert/opentelemetry/pb.go">

<violation number="1" location="app/vlinsert/opentelemetry/pb.go:377">
P2: The field-name length check misses the `.` separator added for nested fields, so over-limit names can still pass.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.

Comment thread app/vlinsert/opentelemetry/pb.go Outdated
@vadimalekseev vadimalekseev force-pushed the otel-too-long-keys branch 3 times, most recently from b6348a1 to d7fd27e Compare May 11, 2026 10:49
This should prevent high memory consumption when processing deeply nested structures.

Updates #1321
Updates #1326
Signed-off-by: Phuong Le <39565248+func25@users.noreply.github.com>
@func25
Copy link
Copy Markdown
Member

func25 commented May 14, 2026

Could you add a regression test for this change?

@func25 func25 added the bug Something isn't working label May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenTelemetry Protobuf Recursion — Process Crash (OOM Kill)

2 participants