Skip to content

opentelemetry: Bump collector to 0.165.0, view traces via debug logs - #1647

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:otel-0165-rework
Nov 20, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:otel-0165-rework

Conversation

@phlax

@phlax phlax commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Takes the otel-collector bump to 0.165.0 (supersedes the dependabot PR #1620, which was red on this example) by reworking the example's trace-viewing step to match.

Why #1620 failed: 0.165.0 removes the zpages /debug/tracez page the example's final step browsed — it now 404s, and the collector logs zPages span processor registration is not available at startup. Everything else works; only "view the traces" broke.

Why log output, not a backend UI: the example deliberately used the collector's (minimal) built-in tracez UI because it was vendor-neutral and visual. 0.165.0 removes it, and the collector itself ships no replacement trace viewer. A visual UI would now require wiring in a vendor backend (Jaeger/Zipkin/Tempo) — which this example intentionally avoids (that's what the jaeger-tracing / zipkin examples are for). So it falls back to the only vendor-neutral view left: the collector's own debug exporter output.

Rework (docs-first, 1:1): the collector is already configured with the debug exporter, so traces are logged to its stdout. Step 4 now views them via docker compose logs opentelemetry, and verify.sh checks the exported spans (routeToEnvoy1, routeToEnvoy2ViaEnvoy1). The two tracez screenshots are dropped — the step is now a text code-block of the actual span output. The now-unused zpages extension and its published port are removed.

Verified end-to-end locally against envoyproxy/envoy:dev — verify.sh is green.

Note: the two orphaned images (opentelemetry-ui.png, opentelemetry-ui-traces.png) are committed in the envoy repo under start/sandboxes/_static/; removed there in envoyproxy/envoy#49495 (parked until this lands).

(bot assisted)

otel-collector 0.165.0 removes the zpages `/debug/tracez` trace page the
example used for its final step (it now 404s; the collector logs
"zPages span processor registration is not available"). The collector is
already configured with the `debug` exporter, so rework the step to view
traces in the collector logs instead.

- Dockerfile: bump collector 0.151.0 -> 0.165.0 (supersedes the dependabot
  bump envoyproxy#1620, which was red on this example).
- verify.sh: replace the tracez check with a check of the exported spans
  (`routeToEnvoy1`, `routeToEnvoy2ViaEnvoy1`) in the collector output.
- example.rst: Step 4 now shows `docker compose logs opentelemetry` and the
  exported spans (docs-first, 1:1 with verify.sh); drop the two UI
  screenshots and the web-UI references.
- Drop the now-unused zpages extension and its published port.

Verified end-to-end locally against envoyproxy/envoy:dev (verify.sh green).

Signed-off-by: Ryan Northey <ryan@synca.io>

Copilot AI 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.

🟢 Approval recommended

No active review issues remain for the Collector upgrade and replacement of the removed trace UI with log-based span inspection.

No open issues 🎉

What changed in this PR

Updates the OpenTelemetry sandbox to Collector 0.165.0 and replaces the removed trace-viewing UI with debug-exporter logs, addressing the compatibility issue behind #1620.

Changes:

  • Bumps the Collector image and pinned digest.
  • Updates documentation and verification to inspect exported spans in Collector logs.
  • Removes the unused zpages extension and its published port.
File Description
opentelemetry/​verify.sh Waits for and checks both expected span names in Collector logs.
opentelemetry/​otel-collector-config.yaml Removes the zpages extension while retaining health checks.
opentelemetry/​example.rst Replaces UI instructions and screenshots with log-viewing steps and sample output.
opentelemetry/​Dockerfile-opentelemetry Pins Collector 0.165.0 and its image digest.
opentelemetry/​docker-compose.yaml Removes the published zpages UI port.

Review effort: Balanced

@phlax
phlax merged commit 99e37a4 into envoyproxy:main Nov 20, 2026
8 checks passed
phlax added a commit to phlax/envoy that referenced this pull request Nov 20, 2026
Sandbox screenshots are provided by each example's _static/ directory in
envoyproxy/examples (bundled via @envoy-examples//:docs). Two opentelemetry
images were committed directly here in 2022 (envoyproxy#22988), before that
convention, and are the only images under start/sandboxes/_static.

Gitignore the directory so images are not committed here again, and remove
the two legacy opentelemetry screenshots: the example no longer references
them (it now shows the collector debug-log output instead,
envoyproxy/examples#1647).

Signed-off-by: Ryan Northey <ryan@synca.io>
phlax added a commit to phlax/envoy that referenced this pull request Nov 20, 2026
Sandbox screenshots are provided by each example's _static/ directory in
envoyproxy/examples (bundled via @envoy-examples//:docs). Two opentelemetry
images were committed directly here in 2022 (envoyproxy#22988), before that
convention, and are the only images under start/sandboxes/_static.

Gitignore the directory so images are not committed here again, and remove
the two legacy opentelemetry screenshots: the example no longer references
them (it now shows the collector debug-log output instead,
envoyproxy/examples#1647).

Signed-off-by: Ryan Northey <ryan@synca.io>
phlax added a commit to envoyproxy/envoy that referenced this pull request Dec 2, 2026
#49495)

Sandbox screenshots are provided by each example's `_static/` directory
in envoyproxy/examples (bundled into the docs via
`@envoy-examples//:docs`). Two opentelemetry images were committed
directly here in 2022 (#22988), before that convention — and they are
the only images under `docs/root/start/sandboxes/_static/`.

This:
- gitignores `docs/root/start/sandboxes/_static/` so images aren't
committed here again, and
- removes the two legacy `opentelemetry-ui*.png`.

The opentelemetry example no longer references them — it now shows the
collector's debug-log output instead (envoyproxy/examples#1647).

Depends on envoyproxy/examples#1647 (which drops the `.. image::`
references). CI here will show whether the docs render is affected
before that lands.

Signed-off-by: Ryan Northey <ryan@synca.io>
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.

2 participants