The Rust OpenTelemetry implementation
Go to file
Dan Rusei 7e88009bc4
adding otlp http transport, using proto binary (#516)
2021-04-20 11:54:20 -07:00
.github Fix coverage tests (#517) 2021-04-07 21:43:30 -07:00
assets Add logos and overview section to crate readmes (#311) 2020-10-27 09:03:56 -07:00
examples adding otlp http transport, using proto binary (#516) 2021-04-20 11:54:20 -07:00
opentelemetry Remove metrics quantiles (#525) 2021-04-17 12:51:13 -07:00
opentelemetry-aws Remove remote span context (#508) 2021-04-04 15:01:37 -07:00
opentelemetry-contrib Prepare for v0.13.0 release (#470) 2021-03-23 19:14:04 -07:00
opentelemetry-datadog fix(opentelemetry-datadog): Disable optional features for reqwest (#514) 2021-04-06 08:10:51 -07:00
opentelemetry-http Return response from HttpClient (#511) 2021-04-05 10:21:49 -07:00
opentelemetry-jaeger jaeger: use follows from instead of child of for links (#524) 2021-04-17 13:16:54 -07:00
opentelemetry-otlp adding otlp http transport, using proto binary (#516) 2021-04-20 11:54:20 -07:00
opentelemetry-prometheus Prepare for v0.13.0 release (#470) 2021-03-23 19:14:04 -07:00
opentelemetry-semantic-conventions Update semantic conventions (#493) 2021-03-25 12:37:36 -07:00
opentelemetry-stackdriver Reduce string allocations where possible (#506) 2021-03-31 13:56:34 -07:00
opentelemetry-zipkin Return response from HttpClient (#511) 2021-04-05 10:21:49 -07:00
scripts adding otlp http transport, using proto binary (#516) 2021-04-20 11:54:20 -07:00
website_docs add website docs (#504) 2021-03-29 14:30:43 -07:00
.gitignore Small development improvements (#283) 2020-10-18 11:18:34 -07:00
.gitmodules Merge opentelemetry-stackdriver into this repo. (#487) 2021-03-21 09:03:08 -07:00
CODEOWNERS Add feature flag documentation to crates (#335) 2020-11-03 09:01:04 -08:00
CONTRIBUTING.md Move 3rd party propagators and merge exporter into sdk::export (#375) 2020-12-06 16:32:52 -08:00
Cargo.toml adding otlp http transport, using proto binary (#516) 2021-04-20 11:54:20 -07:00
LICENSE Switch to Apache 2 license (#2) 2019-12-02 15:55:54 -08:00
README.md Prepare for v0.13.0 release (#470) 2021-03-23 19:14:04 -07:00
VERSIONING.md Add versioning documentation (#379) 2021-01-20 20:20:07 -08:00
precommit.sh feat: clean up lint.sh, use API to set grpc layer (#467) 2021-03-15 10:02:14 -07:00
rustfmt.toml Small development improvements (#283) 2020-10-18 11:18:34 -07:00

README.md

OpenTelemetry — An observability framework for cloud-native software.

OpenTelemetry Rust

The Rust OpenTelemetry implementation.

Crates.io: opentelemetry Documentation LICENSE GitHub Actions CI Gitter chat

Website | Chat | Documentation

Overview

OpenTelemetry is a collection of tools, APIs, and SDKs used to instrument, generate, collect, and export telemetry data (metrics, logs, and traces) for analysis in order to understand your software's performance and behavior. You can export and analyze them using Prometheus, Jaeger, and other observability tools.

Compiler support: requires rustc 1.46+

Getting Started

use opentelemetry::{sdk::export::trace::stdout, trace::Tracer};

fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync + 'static>> {
    // Create a new instrumentation pipeline
    let tracer = stdout::new_pipeline().install_simple();

    tracer.in_span("doing_work", |cx| {
        // Traced app logic here...
    });

    Ok(())
}

See the examples directory for different integration patterns.

Ecosystem

In addition to opentelemetry, the open-telemetry/opentelemetry-rust repository contains several additional crates designed to be used with the opentelemetry ecosystem. This includes a collection of trace SpanExporter and metrics pull and push controller implementations, as well as utility and adapter crates to assist in propagating state and instrumenting applications.

In particular, the following crates are likely to be of interest:

Additionally, there are also several third-party crates which are not maintained by the opentelemetry project. These include:

If you're the maintainer of an opentelemetry ecosystem crate not listed above, please let us know! We'd love to add your project to the list!

Supported Rust Versions

OpenTelemetry is built against the latest stable release. The minimum supported version is 1.46. The current OpenTelemetry version is not guaranteed to build on Rust versions earlier than the minimum supported version.

The current stable Rust compiler and the three most recent minor versions before it will always be supported. For example, if the current stable compiler version is 1.49, the minimum supported version will not be increased past 1.46, three minor versions prior. Increasing the minimum supported compiler version is not considered a semver breaking change as long as doing so complies with this policy.

Contributing

See the contributing file.