Blog
TaygaBy Krzysztof Grajek

Tayga is listed in the OpenTelemetry demo

The official OpenTelemetry demo now links to Tayga in its list of demos featuring the Astronomy Shop. Here is what that listing points to and how to run it yourself.

Tayga's stories page on the OpenTelemetry demo stack, with two payment charge failed groups at the top
Tayga on the OpenTelemetry demo with the paymentFailure flag on.

The OpenTelemetry demo is the OpenTelemetry project’s own reference application. It’s the Astronomy Shop, a microservice store with checkout, payment, shipping, an ad service, a product catalog and more, plus a load generator that keeps buying things. Its README has a section called Demos featuring the Astronomy Shop, where vendors link to their own setups for the same shop.

Tayga is now in that table. The pull request, open-telemetry/opentelemetry-demo#4083 (“Add Tayga to the list of vendors”), was merged on 8 October, the day after Tayga v0.1.0 came out. Tayga sits in the same table as Datadog, Grafana Labs, Honeycomb.io, New Relic and Splunk.

Why the demo is a good fit

Tayga reads OpenTelemetry traces and logs and turns failing and slow requests into error stories, each with a root cause, a critical path and a comparison with the endpoint’s normal behaviour. To show that well you need real traffic across many services, and failures you can switch on at will. The demo has both: its services carry feature flags that inject failures, so you can break payments on purpose and watch what Tayga makes of it.

That is why the Tayga repository carries the demo: it vendors the demo as a git submodule, pinned to 3.1.0, and runs Tayga next to it. The demo’s Collector forwards every trace and log to Tayga as well as to the demo’s own backends.

The link in the demo’s README goes to Demo with the OpenTelemetry demo in Tayga’s docs. In short:

git clone --recurse-submodules https://github.com/softberries/tayga.git && cd tayga
make up                                      # the shop and Tayga: http://localhost:8090
make flag NAME=paymentFailure VARIANT=100%   # every payment now fails

make flag needs a Rust toolchain. Without Rust, set the same flag on the demo’s own flag page at http://localhost:8080/feature.

Within a couple of minutes a new story group appears whose summary starts with “payment charge failed”. There is one group per calling endpoint, because the endpoint is part of the fingerprint. Open the sample story and the root cause is the payment service’s charge span. The request path runs from the load generator through checkout to payment, and the logs below are that request’s own.

A Tayga payment failure story on the demo: root cause in payment charge, the request path, the group trend, the comparison with normal and the waterfall A paymentFailure story: root cause, request path, group trend, comparison with normal and the waterfall.

The docs page also covers the service map turning checkout and payment red, the log alert that fires when the payment error spikes, and how to reset the flags.

Before you run it

The demo is large. When the docs page was written, on 7 October, the full stack (the demo plus Tayga, 36 containers) used 8.9 GiB of memory, measured with docker stats on one machine. Give Docker comfortably more than that, and expect the first image build to take several minutes.

Thanks to the OpenTelemetry demo maintainers for merging it.