Tracetest Monitors: Trace-based testing meets Synthetic Monitoring đŸ”„

Tracetest Monitors: Trace-based testing meets Synthetic Monitoring đŸ”„
Jun 26, 2024
4 min
read
Adnan Rahic
Staff Developer Advocate
Tracetest

Trace-based synthetic monitoring enables scheduled tests and alerts without external CI tools. It makes "testing in production" and enhancing observability across teams easier!

Share on X
Share on LinkedIn
Share on Reddit
Share on HackerNews
Copy URL

Table of Contents

Get started with Tracetest

Try Managed Tracetest Today

Are you ready to get your mind blown!? đŸ§ đŸ’„

Trace-based synthetic monitoring is here! You can now create “Monitors” for Tracetest tests and test suites.

![Edit Monitor](https://res.cloudinary.com/djwdcmwdz/image/upload/v1719399627/Blogposts/Tracetest-Monitors-Trace-based-testing-meets-Synthetic-Monitoring/app-stage.tracetest.io_organizations_ttorg_bbf2def23aec248a_environments_ttenv_ee3687f0d89536d7_monitor_8zfKNkQSR_run_353_overview_3_tly95w.png)

Tracetest Monitors is a framework for creating scheduled runs of tests and test suites, and getting alerted when they fail. With native support for webhooks, you can choose how to integrate with you favorite alerting tools!

![edit monitor alert](https://res.cloudinary.com/djwdcmwdz/image/upload/v1719399653/Blogposts/Tracetest-Monitors-Trace-based-testing-meets-Synthetic-Monitoring/app-stage.tracetest.io_organizations_ttorg_bbf2def23aec248a_environments_ttenv_ee3687f0d89536d7_monitor_8zfKNkQSR_run_353_overview_2_1_jqtuet.png)

We’re dedicated to user experience and giving customers the easiest way of automating test runs without needing external CI tools. We want to give you the best possible tooling to embrace the “test in production” mindset too! Let’s be honest, we all do it! 😎

> [*Join our demo environment to try it out yourself!!*](https://app.tracetest.io/organizations/ttorg_2179a9cd8ba8dfa5/invites/invite_760904a64b4b9dc9/accept)

## The Problem — Scheduled Testing is Not as Simple as it Sounds

Test observability and trace-based testing has become a staple in the OpenTelemetry community. Having the power of distributed tracing at your fingertips when troubleshooting tests and writing assertions is immense. It’s highly advocated by the OpenTelemetry contributors in the official demo repository. While they, and all our other customers, are rolling their own automation with CI, to get the full benefit of trace-based testing, we’ve noticed it can often be a nuisance.

Configuring automated trace-based testing across multiple environments, using several tests, with a set timeframe of, let’s say, every 15 minutes, is not as simple as it sounds. You’d “just” need a CI tool of sorts, like GitHub Actions, or Jenkins. You’d maybe even settle for “just” creating a Kubernetes Job and defining it to run as a cron.

All of this is not as simple as using the word “just”.

Let’s normalize that “just” is relative and can’t apply the same to me, you, or someone else.

DevOps work like this can get exponentially more complex the more moving parts you introduce. A lot of the time SREs can get overloaded. That’s why shifting left and enabling the entire engineering team to perform synthetic testing in production, and across all your environments, is so powerful.

## The Idea — The Beginning of Synthetic Testing

We introduced the `Automate` tab back in July of 2023 including this [guide about simulating synthetic monitoring with GitHub Actions](https://tracetest.io/blog/github-actions-observability-slack-synthetic-api-tests).

![automate test](https://res.cloudinary.com/djwdcmwdz/image/upload/v1719399685/Blogposts/Tracetest-Monitors-Trace-based-testing-meets-Synthetic-Monitoring/app-stage.tracetest.io_organizations_ttorg_bbf2def23aec248a_environments_ttenv_ee3687f0d89536d7_test_pokeshop-demo-import-pokemon-queue_run_277_automate_3_gmf1jh.png)

Making trace-based synthetic monitoring a reality has been a dream since then. But, waking up from dreams takes you back to reality. Back in July of last year we were hyper-focused on releasing Tracetest Open Beta and making Tracetest widely available for our users as a cloud-based managed platform.

We’ve grown and matured since then. Finally, reaching a point where adding scheduled runs with Monitors has become reality!

## The Solution — Trace-based Synthetic Monitoring

The first-ever native synthetic monitoring tool for trace-based testing is live! Create a Monitor to run tests and test suites on a schedule.

![create monitor modal](https://res.cloudinary.com/djwdcmwdz/image/upload/v1719399711/Blogposts/Tracetest-Monitors-Trace-based-testing-meets-Synthetic-Monitoring/app-stage.tracetest.io_organizations_ttorg_bbf2def23aec248a_environments_ttenv_ee3687f0d89536d7_test_pokeshop-demo-import-pokemon-queue_run_277_automate_2_1_w3mwtw.png)

Get alerted via webhooks by integrating with your favorite alerting tools.

![all monitors](https://res.cloudinary.com/djwdcmwdz/image/upload/v1719399745/Blogposts/Tracetest-Monitors-Trace-based-testing-meets-Synthetic-Monitoring/app-stage.tracetest.io_organizations_ttorg_bbf2def23aec248a_environments_ttenv_ee3687f0d89536d7_test_pokeshop-demo-import-pokemon-queue_run_277_automate_1_1_mbr5b4.png)

Monitors leverage the existing Runs and Run Groups resources in Tracetest and build on top of it by enabling scheduling and alerting. Every Monitor you define will be presented as a Run Group with an additional tag using the specific name of the `Monitor`.  Here you can see a list of Run Groups that include two Run Groups labeled as a `Monitor`.

![run groups with monitor labels](https://res.cloudinary.com/djwdcmwdz/image/upload/v1719399770/Blogposts/Tracetest-Monitors-Trace-based-testing-meets-Synthetic-Monitoring/app-stage.tracetest.io_organizations_ttorg_bbf2def23aec248a_environments_ttenv_ee3687f0d89536d7_runs_page_1_name_startDate_endDate_monitorName_Pokeshop_20Monitor_1_1_aspntd.png)

Selecting the `#c85ea8f8-805d-4064-86ea-1aad2074e9c9` Run Group shows which tests are part of the `Monitor`.

![open a monitor run group](https://res.cloudinary.com/djwdcmwdz/image/upload/v1719399794/Blogposts/Tracetest-Monitors-Trace-based-testing-meets-Synthetic-Monitoring/app-stage.tracetest.io_organizations_ttorg_bbf2def23aec248a_environments_ttenv_ee3687f0d89536d7_runs_page_1_name_startDate_endDate_monitorName_Pokeshop_20Monitor_2_1_ymzo1v.png)

Filtering Runs by the `Monitor` tag is also available in the Runs view.

![filter runs by monitor name tag](https://res.cloudinary.com/djwdcmwdz/image/upload/v1719399825/Blogposts/Tracetest-Monitors-Trace-based-testing-meets-Synthetic-Monitoring/app-stage.tracetest.io_organizations_ttorg_bbf2def23aec248a_environments_ttenv_ee3687f0d89536d7_runs_page_1_name_startDate_endDate_monitorName_Pokeshop_20Monitor_3_qhdltm.png)

Releasing Monitors as a Synthetic Monitoring feature has been a long-standing dream, and it has finally arrived. This is the culmination of almost a year of planning and laying the groundwork to launch it for you! Now you can finally get the full benefit of test observability and trace-based testing and easy-to-use test automation for both production and pre-production environments.

## How to Start Using Tracetest Synthetic Monitoring?

Make sure to use Tracetest `v.1.3.1` and above. There are no other requirements. Click on the `Monitors` tab, click `Create` and have fun!

## **What’s Next?**

First and foremost, we welcome your feedback on the initial version of Tracetest Monitors!

We recognize that there are big opportunities for improvement. Ensuring that the features we're developing meet the community's needs is our priority!

Last, but not least, do you want to learn more about Tracetest and what it brings to the table? Check the [docs](https://docs.tracetest.io/examples-tutorials/recipes/running-tracetest-with-lightstep/) and try it out by [signing up](https://app.tracetest.io/) it today!

Also, please feel free to join our [Slack community](https://dub.sh/tracetest-community), give [Tracetest a star on GitHub](https://github.com/kubeshop/tracetest), or schedule a [time to chat 1:1](http://calendly.com/ken-kubeshop/otel-user-interview-w-tracetest).