First published: Last updated:

Can OpenTelemetry Run on TinyGo? A Hands-On Test (October 2026)

Originally published in Japanese at https://zenn.dev/ymotongpoo/books/tinygo-otel-esp32.

This is the companion book to my TinyGo Conference 2026 talk “Observability with TinyGo? Can OpenTelemetry Run on TinyGo?” (in Japanese). OpenTelemetry is not designed for embedded devices. With that assumption in mind, I built an implementation that sends metrics, logs, and traces over OTLP to the OpenTelemetry Collector from an M5Stack CoreS3 (ESP32-S3) that runs TinyGo. Then I tested it on the real device. The book explains why the official Go SDK does not work, what you must write yourself to speak OTLP, and where memory, stacks, and time cause problems. You can check each point against the test code and the measured values as you read.