uptrace-rust
is a lightweight wrapper around
opentelemetry-rust.
It provides a convenient way to configure OpenTelemetry for exporting
traces,
logs, and
metrics to
Uptrace.
Note: This wrapper is currently not production-ready.
For now, please refer to the official documentation and the following examples to learn how to configure OpenTelemetry:
We are actively working on a new API to simplify OpenTelemetry configuration. Here’s a preview of what it will look like:
let uptrace = Uptrace::builder()
.with_dsn("your_dsn_here")
.with_traces(TracesConfig::builder().with_sampler(...).build())
.with_logs(LogsConfig::builder().build())
.with_metrics(MetricsConfig::builder().build())
.build()?;
println!("Trace URL: {}", uptrace.trace_url(cx));
uptrace.force_flush()?;
uptrace.shutdown()?;
If you’re interested in testing or contributing, reach out to us on Telegram.