Crates.io | opentelemetry-application-insights |
lib.rs | opentelemetry-application-insights |
version | 0.37.0 |
source | src |
created_at | 2020-06-21 13:45:22.789039 |
updated_at | 2024-11-12 15:05:22.477152 |
description | OpenTelemetry exporter for Azure Application Insights |
homepage | |
repository | https://github.com/frigus02/opentelemetry-application-insights |
max_upload_size | |
id | 256315 |
size | 306,272 |
An Azure Application Insights exporter implementation for OpenTelemetry Rust.
Disclaimer: This is not an official Microsoft product.
Configure a OpenTelemetry pipeline using the Application Insights exporter and start creating spans (this example requires the opentelemetry-http/reqwest feature):
use opentelemetry::trace::Tracer as _;
fn main() {
let connection_string = std::env::var("APPLICATIONINSIGHTS_CONNECTION_STRING").unwrap();
let tracer = opentelemetry_application_insights::new_pipeline_from_connection_string(connection_string)
.expect("valid connection string")
.with_client(reqwest::blocking::Client::new())
.install_simple();
tracer.in_span("main", |_cx| {});
}
See documentation for more:
Huge thanks goes to Denis Molokanov for the amazing appinsights crate. Check it out if you want a more direct integration with Application Insights.
The only official documentation I could find is this one. Follow the links to see the data model and endpoint description.
Can I send telemetry to the Application Insights portal?
We recommend you use our SDKs and use the SDK API. There are variants of the SDK for various platforms. These SDKs handle buffering, compression, throttling, retries, and so on. However, the ingestion schema and endpoint protocol are public.