@@ -30,13 +30,13 @@ documentation.
3030
3131| Signal/Component | Overall Status |
3232| -------------------- | ------------------ |
33- | Logs-API | RC * |
34- | Logs-SDK | Beta |
35- | Logs-OTLP Exporter | Beta |
36- | Logs-Appender-Tracing | Beta |
37- | Metrics-API | RC |
38- | Metrics-SDK | Beta |
39- | Metrics-OTLP Exporter | Beta |
33+ | Logs-API | Stable * |
34+ | Logs-SDK | RC |
35+ | Logs-OTLP Exporter | RC |
36+ | Logs-Appender-Tracing | RC |
37+ | Metrics-API | Stable |
38+ | Metrics-SDK | RC |
39+ | Metrics-OTLP Exporter | RC |
4040| Traces-API | Beta |
4141| Traces-SDK | Beta |
4242| Traces-OTLP Exporter | Beta |
@@ -55,50 +55,28 @@ If you already use the logging APIs from above, continue to use them, and use
5555the appenders above to bridge the logs to OpenTelemetry. If you are using a
5656library not listed here, feel free to contribute a new appender for the same.
5757
58- If you are starting fresh, then consider using
58+ If you are starting fresh, we recommend using
5959[ tracing] ( https://github.com/tokio-rs/tracing ) as your logging API. It supports
60- structured logging and is actively maintained.
60+ structured logging and is actively maintained. ` OpenTelemetry ` itself uses
61+ ` tracing ` for its internal logging.
6162
6263Project versioning information and stability guarantees can be found
6364[ here] ( VERSIONING.md ) .
6465
6566## Getting Started
6667
67- ``` rust
68- use opentelemetry :: trace :: {
69- TraceContextExt ,
70- Tracer ,
71- TracerProvider ,
72- };
73- use opentelemetry_sdk :: trace :: SdkTracerProvider ;
74-
75- fn main () {
76- // Create a new trace pipeline that prints to stdout
77- let provider = TracerProvider :: builder ()
78- . with_simple_exporter (opentelemetry_stdout :: SpanExporter :: default ())
79- . build ();
80- let tracer = provider . tracer (" readme_example" );
81-
82- tracer . in_span (" doing_work" , | cx | {
83- // Traced app logic here...
84- });
85-
86- // Shutdown trace pipeline
87- provider . shutdown (). expect (" TracerProvider should shutdown successfully" )
88- }
89- ```
90-
91- The example above requires the following packages:
92-
93- ``` toml
94- # Cargo.toml
95- [dependencies ]
96- opentelemetry = " 0.27"
97- opentelemetry_sdk = " 0.27"
98- opentelemetry-stdout = { version = " 0.27" , features = [" trace" ] }
99- ```
100-
101- See the [ examples] ( ./examples ) directory for different integration patterns.
68+ If you are new to OpenTelemetry, start with the [ Stdout
69+ Example] ( ./opentelemetry-stdout/examples/basic.rs ) . This example demonstrates
70+ how to use OpenTelemetry for logs, metrics, and traces, and display
71+ telemetry data on your console.
72+
73+ For those using OTLP, the recommended OpenTelemetry Exporter for production
74+ scenarios, refer to the [ OTLP Example -
75+ HTTP] ( ./opentelemetry-otlp/examples/basic-otlp-http/README.md ) and the [ OTLP
76+ Example - gRPC] ( ./opentelemetry-otlp/examples/basic-otlp/README.md ) .
77+
78+ Additional examples for various integration patterns can be found in the
79+ [ examples] ( ./examples ) directory.
10280
10381## Overview of crates
10482
0 commit comments