Skip to content

feat: Configure Istio to export Envoy traces to OTel Collector for Kind clusters - #795

Merged
pdettori merged 3 commits into
rossoctl:mainfrom
evaline-ju:trace-connections
Mar 3, 2026
Merged

pdettori merged 3 commits into
rossoctl:mainfrom
evaline-ju:trace-connections

Conversation

@evaline-ju

@evaline-ju evaline-ju commented Mar 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • meshConfig change - register an OTel tracing provider with istiod (Istio's control plane)
  • Telemetry CRD activates tracing mesh-wide

This allows Envoy proxy traces (including MCP Gateway requests) to flow through to observability platforms alongside agent-level OTel traces. Focusing the change only on Kind clusters for now [MCP gateway router tracing is not yet in the latest 0.5 release, and there may still be issues with e2e MCP gateway usage on OpenShift/HyperShift]

Related issue(s)

Related to initiative of tracing agent->gateway->tool in #619

@evaline-ju

Copy link
Copy Markdown
Contributor Author

/run-e2e

@github-actions github-actions Bot added the safe-to-test Maintainer reviewed - safe to run E2E tests label Mar 2, 2026
@github-actions

github-actions Bot commented Mar 2, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Started

Triggered by: @evaline-ju
Commit: c6e1b1584c5814f143fe48145b84b616d735eafb
Workflow Run: View logs

Tests are running on OpenShift 4.20.11. This typically takes 30-45 minutes.


To re-run tests after new commits, comment /run-e2e again.

@github-actions

github-actions Bot commented Mar 2, 2026

Copy link
Copy Markdown

E2E HyperShift Tests Failed

Commit: c6e1b1584c5814f143fe48145b84b616d735eafb
Result: Tests failed - please check the logs
Workflow Run: View logs


To re-run tests after fixing issues, comment /run-e2e again.

evaline-ju and others added 2 commits March 2, 2026 15:01
Add meshConfig.extensionProviders to istiod Helm values to register
the OTel Collector as a tracing backend, and create an Istio Telemetry
CR in kagenti-deps to enable 100% trace sampling. This allows Envoy
proxy traces (including MCP Gateway requests) to flow through to
Phoenix alongside agent-level OTel traces.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Signed-off-by: Evaline Ju <[email protected]>
@github-actions github-actions Bot removed the safe-to-test Maintainer reviewed - safe to run E2E tests label Mar 2, 2026
@github-actions

github-actions Bot commented Mar 2, 2026

Copy link
Copy Markdown

New Commits Detected

The safe-to-test label has been automatically removed because new commits were pushed.

New HEAD: cd5eedf

For maintainers: Please review the new changes and comment /run-e2e to trigger E2E tests.

Security checklist

Before running E2E tests, verify the PR does NOT contain:

  • Changes to .github/workflows/ that bypass security
  • Changes to .github/scripts/ that could exfiltrate secrets
  • curl, wget, or nc commands to external URLs in scripts
  • Base64 encoding of environment variables
  • Printing secrets to logs (echo $SECRET)
  • Suspicious package installations

This is an automated security measure to prevent TOCTOU attacks

@pdettori pdettori left a comment

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.

Clean, well-scoped PR that adds Envoy-level trace export to the OTel Collector for Kind clusters. The three changes (meshConfig provider, gRPC receiver, Telemetry CR) form a complete and consistent tracing pipeline. All CI checks pass.

Areas reviewed: Helm/K8s, Ansible, Security
Commits: 2 commits, both signed-off
CI status: All passing (E2E HyperShift pending maintainer trigger)

tracing:
- providers:
- name: otel-tracing
randomSamplingPercentage: 100

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.

suggestion: randomSamplingPercentage: 100 is fine for Kind dev clusters. Consider adding a .Values override (e.g., .Values.istio.traceSamplingPercentage) to make it configurable for future environments. Low priority since this is guarded by not .Values.openshift.

extensionProviders:
- name: otel-tracing
opentelemetry:
service: otel-collector.kagenti-system.svc.cluster.local

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.

nit: The service FQDN otel-collector.kagenti-system.svc.cluster.local is hardcoded. If the kagenti-deps namespace ever changes, this would silently break tracing. Consider using an Ansible variable for the namespace. Low risk for Kind-only.

@@ -158,6 +158,8 @@ data:
receivers:
otlp:
protocols:
grpc:

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.

praise: Good addition - the gRPC receiver was missing from the config despite the container port and Service already exposing 4317. This aligns the config with the existing infrastructure.

@pdettori pdettori left a comment

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.

/lgtm

@pdettori
pdettori merged commit 6672d85 into rossoctl:main Mar 3, 2026
16 checks passed
@evaline-ju
evaline-ju deleted the trace-connections branch March 3, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants