Skip to content

Commit a58404e

Browse files
authored
Few doc updates, mostly cleanups. (#1749)
1 parent 78c5c08 commit a58404e

File tree

2 files changed

+31
-51
lines changed

2 files changed

+31
-51
lines changed

opentelemetry/src/lib.rs

+28-49
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,21 @@
8888
//! See the [`metrics`] module docs for more information on creating and
8989
//! managing instruments.
9090
//!
91+
//!
92+
//! //! # Logs
93+
//!
94+
//! The [`logs`] module contains the Logs Bridge API. It is not intended to be
95+
//! called by application developers directly. It is provided for logging
96+
//! library authors to build log appenders, that bridges existing logging
97+
//! systems with OpenTelemetry. Bridges for
98+
//! [`log`](https://crates.io/crates/log) and
99+
//! [`tracing`](https://crates.io/crates/tracing) libraries are provided via
100+
//! the
101+
//! [`opentelemetry-appender-log`](https://crates.io/crates/opentelemetry-appender-log)
102+
//! and
103+
//! [`opentelemetry-appender-tracing`](https://crates.io/crates/opentelemetry-appender-tracing)
104+
//! crates.
105+
//!
91106
//! ## Crate Feature Flags
92107
//!
93108
//! The following core crate feature flags are available:
@@ -106,74 +121,38 @@
106121
//!
107122
//! In addition to `opentelemetry`, the [`open-telemetry/opentelemetry-rust`]
108123
//! repository contains several additional crates designed to be used with the
109-
//! `opentelemetry` ecosystem. This includes a collection of trace
110-
//! `SpanExporter` and metrics pull and push controller implementations, as well
111-
//! as utility and adapter crates to assist in propagating state and
124+
//! `opentelemetry` ecosystem. This includes exporters, samplers, as well as
125+
//! utility and adapter crates to assist in propagating context and
112126
//! instrumenting applications.
113127
//!
114128
//! In particular, the following crates are likely to be of interest:
115129
//!
116-
//! - [`opentelemetry_sdk`] provides the SDK used to configure providers.
130+
//! - [`opentelemetry_sdk`] provides the OpenTelemetry SDK used to configure providers.
117131
//! - [`opentelemetry-http`] provides an interface for injecting and extracting
118132
//! trace information from [`http`] headers.
119-
//! - [`opentelemetry-jaeger`] provides a pipeline and exporter for sending
120-
//! trace information to [`Jaeger`].
121-
//! - [`opentelemetry-otlp`] exporter for sending trace and metric data in the
122-
//! OTLP format to the OpenTelemetry collector.
133+
//! - [`opentelemetry-otlp`] exporter for sending telemetry in the
134+
//! OTLP format.
123135
//! - [`opentelemetry-prometheus`] provides a pipeline and exporter for sending
124136
//! metrics information to [`Prometheus`].
125137
//! - [`opentelemetry-zipkin`] provides a pipeline and exporter for sending
126138
//! trace information to [`Zipkin`].
127-
//! - [`opentelemetry-datadog`] provides additional exporters to [`Datadog`].
128-
//! - [`opentelemetry-aws`] provides unofficial propagators for AWS X-ray.
129-
//! - [`opentelemetry-contrib`] provides additional exporters and propagators that are
130-
//! experimental.
131-
//! - [`opentelemetry-semantic-conventions`] provides standard names and
132-
//! semantic otel conventions.
133-
//! - [`opentelemetry-stackdriver`] provides an exporter for Google's [Cloud Trace]
134-
//! (which used to be called StackDriver).
135-
//!
136-
//! Additionally, there are also several third-party crates which are not
137-
//! maintained by the `opentelemetry` project. These include:
138-
//!
139-
//! - [`tracing-opentelemetry`] provides integration for applications
140-
//! instrumented using the [`tracing`] API and ecosystem.
141-
//! - [`actix-web-opentelemetry`] provides integration for the [`actix-web`] web
142-
//! server and ecosystem.
143-
//! - [`opentelemetry-application-insights`] provides an unofficial [Azure
144-
//! Application Insights] exporter.
145-
//! - [`opentelemetry-tide`] provides integration for the [`Tide`] web server
146-
//! and ecosystem.
147-
//!
148-
//! If you're the maintainer of an `opentelemetry` ecosystem crate not listed
149-
//! above, please let us know! We'd love to add your project to the list!
150-
//!
151-
//! [`actix-web-opentelemetry`]: https://crates.io/crates/actix-web-opentelemetry
152-
//! [`actix-web`]: https://crates.io/crates/actix-web
153-
//! [`Datadog`]: https://www.datadoghq.com
139+
//!
140+
//! In addition, there are several other useful crates in the [OTel Rust
141+
//! Contrib
142+
//! repo](https://github.com/open-telemetry/opentelemetry-rust-contrib). A lot
143+
//! of crates maintained outside OpenTelemetry owned repos can be found in the
144+
//! [OpenTelemetry
145+
//! Registry](https://opentelemetry.io/ecosystem/registry/?language=rust).
146+
//!
154147
//! [`http`]: https://crates.io/crates/http
155-
//! [`Jaeger`]: https://www.jaegertracing.io
156148
//! [`open-telemetry/opentelemetry-rust`]: https://github.com/open-telemetry/opentelemetry-rust
157149
//! [`opentelemetry_sdk`]: https://crates.io/crates/opentelemetry_sdk
158-
//! [`opentelemetry-application-insights`]: https://crates.io/crates/opentelemetry-application-insights
159-
//! [`opentelemetry-aws`]: https://crates.io/crates/opentelemetry-aws
160-
//! [`opentelemetry-contrib`]: https://crates.io/crates/opentelemetry-contrib
161-
//! [`opentelemetry-datadog`]: https://crates.io/crates/opentelemetry-datadog
162150
//! [`opentelemetry-http`]: https://crates.io/crates/opentelemetry-http
163-
//! [`opentelemetry-jaeger`]: https://crates.io/crates/opentelemetry-jaeger
164151
//! [`opentelemetry-otlp`]: https://crates.io/crates/opentelemetry-otlp
165152
//! [`opentelemetry-prometheus`]: https://crates.io/crates/opentelemetry-prometheus
166-
//! [`opentelemetry-semantic-conventions`]: https://crates.io/crates/opentelemetry-semantic-conventions
167-
//! [`opentelemetry-stackdriver`]: https://crates.io/crates/opentelemetry-stackdriver
168-
//! [`opentelemetry-tide`]: https://crates.io/crates/opentelemetry-tide
169153
//! [`opentelemetry-zipkin`]: https://crates.io/crates/opentelemetry-zipkin
170154
//! [`Prometheus`]: https://prometheus.io
171-
//! [`Tide`]: https://crates.io/crates/tide
172-
//! [`tracing-opentelemetry`]: https://crates.io/crates/tracing-opentelemetry
173-
//! [`tracing`]: https://crates.io/crates/tracing
174155
//! [`Zipkin`]: https://zipkin.io
175-
//! [Azure Application Insights]: https://docs.microsoft.com/en-us/azure/azure-monitor/app/app-insights-overview
176-
//! [Cloud Trace]: https://cloud.google.com/trace/
177156
//!
178157
//! ## Supported Rust Versions
179158
//!

opentelemetry/src/logs/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! # OpenTelemetry Logs Bridge API
2-
/// This API is not intended to be called by application developers directly. It
3-
/// is provided for logging library authors to build log appenders.
2+
/// This API is not intended to be called by application developers directly.
3+
/// It is provided for logging library authors to build log appenders, that
4+
/// bridges existing logging systems with OpenTelemetry.
45
use crate::ExportError;
56

67
use std::{sync::PoisonError, time::Duration};

0 commit comments

Comments
 (0)