web: add OTel console-batch-exporter for the development environment
Created by: valerybugakov
Context
Add ConsoleBatchSpanExporter
that nests spans using parentSpanId
fields on a span batch and logs them into the console. Used in the development environment for a faster feedback cycle and better span explorability during experimentation with new OTel instrumentation.
Also, fixes the warning about using non-passive scroll event listeners by zone.js
library.
Test plan
ENABLE_OPEN_TELEMETRY=true sg start web-standalone
- Refresh the page.
- See OTel spans in the console.
App preview:
Check out the client app preview documentation to learn more.