Application Insights for Rust
This project provides a Rust SDK for Application Insights. Application Insights is an APM service that helps to monitor running applications. This Rust crate allows to send various kinds of telemetry information to the server to be visualized later on Azure Portal.
:triangular_flag_on_post: Disclaimer
This project is not an officially recognized Microsoft product and is not an endorsement of any future product offering from Microsoft.Microsoft and Azure are registered trademarks of Microsoft Corporation.
Installation
or just add this to your Cargo.toml
:
[]
= "0.2"
Usage
To start tracking telemetry for your application first thing you need to do is to obtain an Instrumentation Key and initialize TelemetryClient
with it.
This client will be used to send all telemetry data to Application Insights. This SDK doesn't collect any telemetry automatically, so this client should be used everywhere in the code to report health information about an application.
use TelemetryClient;
async
If you need more control over the client's behavior, you can create a new instance of TelemetryConfig
and initialize a TelemetryClient
with it.
use Duration;
use ;
use SeverityLevel;
async
License
This project is licensed under the terms of the MIT license.