Skip to content

fix(operator): warn when VirtualMCPServer inline telemetry is ignored - #6408

Open
RaviTharuma wants to merge 2 commits into
stacklok:mainfrom
RaviTharuma:fix/vmcp-inline-telemetry-warning
Open

fix(operator): warn when VirtualMCPServer inline telemetry is ignored#6408
RaviTharuma wants to merge 2 commits into
stacklok:mainfrom
RaviTharuma:fix/vmcp-inline-telemetry-warning

Conversation

@RaviTharuma

Copy link
Copy Markdown
Contributor

Follow-up from #6276 after closing #6277. Operator ignores spec.config.telemetry and emits a one-shot Warning (InlineTelemetryIgnored) when it is set without telemetryConfigRef. Docs no longer claim inline still works for operator vMCP. /metrics stays unregistered without the ref (HTTP 406).

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.00%. Comparing base (0fb54d4) to head (c25df52).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6408      +/-   ##
==========================================
- Coverage   78.02%   78.00%   -0.03%     
==========================================
  Files         767      767              
  Lines       74273    74284      +11     
==========================================
- Hits        57955    57947       -8     
- Misses      16313    16332      +19     
  Partials        5        5              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines +50 to +51
usesIgnoredInline := vmcp.Spec.Config.Telemetry != nil && vmcp.Spec.TelemetryConfigRef == nil
r.emitInlineTelemetryIgnoredEvent(vmcp, usesIgnoredInline)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: this is passing both vmcp and a boolean calculated on its fields. Is there a reason why vmcp.Spec.Config.Telemetry and vmcp.Spec.TelemetryConfigRef are evaluated outside? If not, would you mind reducing this to func emitInlineTelemetryIgnoredEvent(vmcp *mcpv1beta1.VirtualMCPServer) and do al the math in it?

RaviTharuma and others added 2 commits August 30, 2026 13:02
Signed-off-by: Ravi Tharuma <RaviTharuma@users.noreply.github.com>
Review asked emitInlineTelemetryIgnoredEvent to take only
the VirtualMCPServer and evaluate Spec.Config.Telemetry
and Spec.TelemetryConfigRef inside the helper.

Co-authored-by: Ravi Tharuma <RaviTharuma@users.noreply.github.com>
@cursor
cursor Bot force-pushed the fix/vmcp-inline-telemetry-warning branch from fc67cfa to c25df52 Compare August 30, 2026 13:02
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.

3 participants