Rust - Implementing OpenTelemetry in a Rust application for performance monitoring

Rust - Implementing OpenTelemetry in a Rust application for performance monitoring

Jun 16, 2022

In this tutorial, we will use OpenTelemetry to instrument a PHP application for telemetry data.

OpenTelemetry can be used to trace Rust applications for performance issues and bugs. OpenTelemetry is an open-source project under the Cloud Native Computing Foundation (CNCF) that aims to standardize the generation and collection of telemetry data. Telemetry data includes logs, metrics, and traces.

Link to rust blog - https://signoz.io/blog/opentelemetry-rust/
Link to sample-rust-app repository - https://github.com/SigNoz/sample-rust-app

More about SigNoz:

SigNoz - Monitor your applications and troubleshoot problems in your deployed applications, an open-source alternative to DataDog, New Relic, etc. Backed by Y Combinator.

SigNoz helps developers monitor applications and troubleshoot problems in their deployed applications. SigNoz uses distributed tracing to gain visibility into your software stack.

SigNoz website - https://signoz.io

SigNoz Github repository - https://github.com/SigNoz/signoz

You can find the official documentation here - https://signoz.io/docs/.

Come say Hi to us on Slack - https://signoz.io/slack

If you need any clarification or find something missing, feel free to raise a GitHub issue with the label documentation or reach out to us at the community slack channel.

SigNoz Instrumentation with OpenTelemetry blogs:
Instrument Go Application - https://signoz.io/opentelemetry/go/
Instrument Rust Application - https://signoz.io/blog/opentelemetry-rust/
Instrument Elixir Application - https://signoz.io/blog/opentelemetry-elixir/
Instrument Python Application - https://signoz.io/blog/python-application-monitoring/

Instrument.NET Application - https://signoz.io/blog/opentelemetry-dotnet/
Instrument React Application - https://signoz.io/blog/opentelemetry-react/
Instrument Ruby on Rails Application - https://signoz.io/blog/opentelemetry-ruby/
Instrument Nextjs Application - https://signoz.io/blog/opentelemetry-nextjs/
Instrument Angular Application - https://signoz.io/blog/opentelemetry-angular/
Instrument Django Application - https://signoz.io/blog/opentelemetry-django/

TIMESTAMPS

00:00 Implementing OpenTelemetry in a Rust application for performance monitoring

00:15 4 steps

01:11 Install SigNoz

02:21 SigNoz Dashboard

02:49 sample-rust-app

03:30 instrument rust app with OpenTelemetry

03:52 Initialize tracer in rust file

04:07 Add OTel Instrumentation

04:40 Set Environment Variables and Run the app

06:42 Analyze traces in SigNoz Dashboard

07:08 Flame Graphs and Gantt Charts

07:38 Error Spans in SigNoz

08:12 Reach out to SigNoz