-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into logs-integration-test
- Loading branch information
Showing
59 changed files
with
492 additions
and
491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,7 @@ | |
"reqwest", | ||
"runtimes", | ||
"rustc", | ||
"shoppingcart", | ||
"Tescher", | ||
"tracerprovider", | ||
"Zhongyang", | ||
|
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,6 +138,19 @@ jobs: | |
env: | ||
CARGO_INCREMENTAL: '0' | ||
RUSTDOCFLAGS: -Dwarnings | ||
semver: # This job uses the latest published crate as baseline for comparison. | ||
runs-on: ubuntu-latest | ||
name: semver | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Install stable | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt | ||
- name: cargo-semver-checks | ||
uses: obi1kenobi/[email protected] | ||
coverage: | ||
continue-on-error: true | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
# Log Appender for API - Example | ||
# OpenTelemetry Log Appender for log - Example | ||
|
||
This example shows how to use the opentelemetry-appender-log crate, which is a | ||
[logging appender](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/glossary.md#log-appender--bridge) that bridges logs from the [log crate](https://docs.rs/log/latest/log/) to OpenTelemetry. | ||
The example setups a LoggerProvider with stdout exporter, so logs are emitted to stdout. | ||
[logging | ||
appender](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/glossary.md#log-appender--bridge) | ||
that bridges logs from the [log crate](https://docs.rs/log/latest/log/) to | ||
OpenTelemetry. The example setups a LoggerProvider with stdout exporter, so logs | ||
are emitted to stdout. | ||
|
||
## Usage | ||
|
||
Run the following, and Logs emitted using [log](https://docs.rs/log/latest/log/) will be written out to stdout. | ||
Run the following, and Logs emitted using [log](https://docs.rs/log/latest/log/) | ||
will be written out to stdout. | ||
|
||
```shell | ||
$ cargo run | ||
cargo run | ||
``` | ||
|
||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,28 @@ | ||
# OpenTelemetry Log Appender for `log` crate | ||
|
||
![OpenTelemetry — An observability framework for cloud-native software.][splash] | ||
|
||
[splash]: https://raw.githubusercontent.com/open-telemetry/opentelemetry-rust/main/assets/logo-text.png | ||
|
||
# OpenTelemetry Log Appender | ||
|
||
A [Log Appender](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/glossary.md#log-appender--bridge) that bridges logs from the [log crate](https://docs.rs/log/latest/log/) to OpenTelemetry. | ||
This crate contains a [Log Appender](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/glossary.md#log-appender--bridge) that bridges logs from the [log crate](https://docs.rs/log/latest/log/) to OpenTelemetry. | ||
|
||
[![Crates.io: opentelemetry-appender-log](https://img.shields.io/crates/v/opentelemetry-appender-log.svg)](https://crates.io/crates/opentelemetry-appender-log) | ||
[![Documentation](https://docs.rs/opentelemetry-appender-log/badge.svg)](https://docs.rs/opentelemetry-appender-log) | ||
[![LICENSE](https://img.shields.io/crates/l/opentelemetry-appender-log)](./LICENSE) | ||
[![GitHub Actions CI](https://github.com/open-telemetry/opentelemetry-rust/workflows/CI/badge.svg)](https://github.com/open-telemetry/opentelemetry-rust/actions?query=workflow%3ACI+branch%3Amain) | ||
[![Slack](https://img.shields.io/badge/slack-@cncf/otel/rust-brightgreen.svg?logo=slack)](https://cloud-native.slack.com/archives/C03GDP0H023) | ||
|
||
## Overview | ||
## OpenTelemetry 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. This | ||
crate provides additional propagators and exporters for sending telemetry data | ||
to vendors or using experimental propagators like `base64`. | ||
OpenTelemetry is an Observability framework and toolkit designed to create and | ||
manage telemetry data such as traces, metrics, and logs. OpenTelemetry is | ||
vendor- and tool-agnostic, meaning that it can be used with a broad variety of | ||
Observability backends, including open source tools like [Jaeger] and | ||
[Prometheus], as well as commercial offerings. | ||
|
||
[`OpenTelemetry`]: https://crates.io/crates/opentelemetry | ||
OpenTelemetry is *not* an observability backend like Jaeger, Prometheus, or other | ||
commercial vendors. OpenTelemetry is focused on the generation, collection, | ||
management, and export of telemetry. A major goal of OpenTelemetry is that you | ||
can easily instrument your applications or systems, no matter their language, | ||
infrastructure, or runtime environment. Crucially, the storage and visualization | ||
of telemetry is intentionally left to other tools. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,34 @@ | ||
# OpenTelemetry Log Appender for `tracing` crate | ||
|
||
![OpenTelemetry — An observability framework for cloud-native software.][splash] | ||
|
||
[splash]: https://raw.githubusercontent.com/open-telemetry/opentelemetry-rust/main/assets/logo-text.png | ||
|
||
# OpenTelemetry Log Appender for Tracing | ||
|
||
A [Log | ||
This crate contains a [Log | ||
Appender](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/glossary.md#log-appender--bridge) | ||
that bridges logs from the [tracing crate](https://tracing.rs/tracing/#events) | ||
to OpenTelemetry logs. Note that this is different from the existing | ||
to OpenTelemetry. Note that this is different from the existing | ||
[tracing-opentelemetry](https://github.com/tokio-rs/tracing-opentelemetry) | ||
project, which supports bridging traces and logs from tracing into OpenTelemetry | ||
traces. This is an experimental component, and could be merged with the | ||
tracing-opentelemetry crate itself. | ||
traces. | ||
|
||
[![Crates.io: opentelemetry-appender-tracing](https://img.shields.io/crates/v/opentelemetry-appender-tracing.svg)](https://crates.io/crates/opentelemetry-appender-tracing) | ||
[![Documentation](https://docs.rs/opentelemetry-appender-tracing/badge.svg)](https://docs.rs/opentelemetry-appender-tracing) | ||
[![LICENSE](https://img.shields.io/crates/l/opentelemetry-appender-tracing)](./LICENSE) | ||
[![GitHub Actions CI](https://github.com/open-telemetry/opentelemetry-rust/workflows/CI/badge.svg)](https://github.com/open-telemetry/opentelemetry-rust/actions?query=workflow%3ACI+branch%3Amain) | ||
[![Slack](https://img.shields.io/badge/slack-@cncf/otel/rust-brightgreen.svg?logo=slack)](https://cloud-native.slack.com/archives/C03GDP0H023) | ||
|
||
## Overview | ||
## OpenTelemetry 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. This | ||
crate provides additional propagators and exporters for sending telemetry data | ||
to vendors or using experimental propagators like `base64`. | ||
OpenTelemetry is an Observability framework and toolkit designed to create and | ||
manage telemetry data such as traces, metrics, and logs. OpenTelemetry is | ||
vendor- and tool-agnostic, meaning that it can be used with a broad variety of | ||
Observability backends, including open source tools like [Jaeger] and | ||
[Prometheus], as well as commercial offerings. | ||
|
||
[`OpenTelemetry`]: https://crates.io/crates/opentelemetry | ||
OpenTelemetry is *not* an observability backend like Jaeger, Prometheus, or other | ||
commercial vendors. OpenTelemetry is focused on the generation, collection, | ||
management, and export of telemetry. A major goal of OpenTelemetry is that you | ||
can easily instrument your applications or systems, no matter their language, | ||
infrastructure, or runtime environment. Crucially, the storage and visualization | ||
of telemetry is intentionally left to other tools. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,30 @@ | ||
# OpenTelemetry HTTP | ||
|
||
![OpenTelemetry — An observability framework for cloud-native software.][splash] | ||
|
||
[splash]: https://raw.githubusercontent.com/open-telemetry/opentelemetry-rust/main/assets/logo-text.png | ||
|
||
# OpenTelemetry HTTP | ||
|
||
The Rust [OpenTelemetry](https://opentelemetry.io/) implementation. | ||
This crate contains helper implementations for sending HTTP requests. Uses | ||
include propagating and extracting context over http, exporting telemetry, | ||
requesting sampling strategies. | ||
|
||
[![LICENSE](https://img.shields.io/crates/l/opentelemetry)](./LICENSE) | ||
[![Crates.io: opentelemetry-http](https://img.shields.io/crates/v/opentelemetry-http.svg)](https://crates.io/crates/opentelemetry-http) | ||
[![Documentation](https://docs.rs/opentelemetry-http/badge.svg)](https://docs.rs/opentelemetry-http) | ||
[![LICENSE](https://img.shields.io/crates/l/opentelemetry-http)](./LICENSE) | ||
[![GitHub Actions CI](https://github.com/open-telemetry/opentelemetry-rust/workflows/CI/badge.svg)](https://github.com/open-telemetry/opentelemetry-rust/actions?query=workflow%3ACI+branch%3Amain) | ||
[![Slack](https://img.shields.io/badge/slack-@cncf/otel/rust-brightgreen.svg?logo=slack)](https://cloud-native.slack.com/archives/C03GDP0H023) | ||
|
||
## 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. This | ||
crate provides a HTTP client interface for use by trace exporters, as well as | ||
helper types to inject and extract key value pairs into/from HTTP headers. | ||
|
||
*Compiler support: [requires `rustc` 1.65+][msrv]* | ||
|
||
[`OpenTelemetry`]: https://crates.io/crates/opentelemetry | ||
[msrv]: #supported-rust-versions | ||
|
||
## Supported Rust Versions | ||
## OpenTelemetry Overview | ||
|
||
OpenTelemetry is built against the latest stable release. The minimum supported | ||
version is 1.65. The current OpenTelemetry version is not guaranteed to build | ||
on Rust versions earlier than the minimum supported version. | ||
OpenTelemetry is an Observability framework and toolkit designed to create and | ||
manage telemetry data such as traces, metrics, and logs. OpenTelemetry is | ||
vendor- and tool-agnostic, meaning that it can be used with a broad variety of | ||
Observability backends, including open source tools like [Jaeger] and | ||
[Prometheus], as well as commercial offerings. | ||
|
||
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. | ||
OpenTelemetry is *not* an observability backend like Jaeger, Prometheus, or other | ||
commercial vendors. OpenTelemetry is focused on the generation, collection, | ||
management, and export of telemetry. A major goal of OpenTelemetry is that you | ||
can easily instrument your applications or systems, no matter their language, | ||
infrastructure, or runtime environment. Crucially, the storage and visualization | ||
of telemetry is intentionally left to other tools. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,30 @@ | ||
# OpenTelemetry Jaeger Propagator | ||
|
||
![OpenTelemetry — An observability framework for cloud-native software.][splash] | ||
|
||
[splash]: https://raw.githubusercontent.com/open-telemetry/opentelemetry-rust/main/assets/logo-text.png | ||
|
||
# OpenTelemetry Jaeger Propagator | ||
|
||
[`Jaeger`] propagator integration for applications instrumented with [`OpenTelemetry`]. To export telemetry to Jaeger, use the opentelemetry-otlp crate. | ||
This crate contains [`Jaeger`] propagator integration for applications | ||
instrumented with [`OpenTelemetry`]. To export telemetry to Jaeger, use the | ||
opentelemetry-otlp crate. | ||
|
||
[![Crates.io: opentelemetry-jaeger](https://img.shields.io/crates/v/opentelemetry-jaeger.svg)](https://crates.io/crates/opentelemetry-jaeger) | ||
[![Documentation](https://docs.rs/opentelemetry-jaeger/badge.svg)](https://docs.rs/opentelemetry-jaeger) | ||
[![LICENSE](https://img.shields.io/crates/l/opentelemetry-jaeger)](./LICENSE) | ||
[![Crates.io: opentelemetry-jaeger-propagator](https://img.shields.io/crates/v/opentelemetry-jaeger-propagator.svg)](https://crates.io/crates/opentelemetry-jaeger-propagator) | ||
[![Documentation](https://docs.rs/opentelemetry-jaeger-propagator/badge.svg)](https://docs.rs/opentelemetry-jaeger-propagator) | ||
[![LICENSE](https://img.shields.io/crates/l/opentelemetry-jaeger-propagator)](./LICENSE) | ||
[![GitHub Actions CI](https://github.com/open-telemetry/opentelemetry-rust/workflows/CI/badge.svg)](https://github.com/open-telemetry/opentelemetry-rust/actions?query=workflow%3ACI+branch%3Amain) | ||
[![Slack](https://img.shields.io/badge/slack-@cncf/otel/rust-brightgreen.svg?logo=slack)](https://cloud-native.slack.com/archives/C03GDP0H023) | ||
|
||
## 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. This | ||
crate provides the ability to create and interact with a Jaeger propagator. | ||
|
||
*Compiler support: [requires `rustc` 1.65+][msrv]* | ||
|
||
[`Jaeger`]: https://www.jaegertracing.io/ | ||
[`OpenTelemetry`]: https://crates.io/crates/opentelemetry | ||
[msrv]: #supported-rust-versions | ||
|
||
## Supported Rust Versions | ||
## OpenTelemetry Overview | ||
|
||
OpenTelemetry is built against the latest stable release. The minimum supported | ||
version is 1.65. The current OpenTelemetry version is not guaranteed to build | ||
on Rust versions earlier than the minimum supported version. | ||
OpenTelemetry is an Observability framework and toolkit designed to create and | ||
manage telemetry data such as traces, metrics, and logs. OpenTelemetry is | ||
vendor- and tool-agnostic, meaning that it can be used with a broad variety of | ||
Observability backends, including open source tools like [Jaeger] and | ||
[Prometheus], as well as commercial offerings. | ||
|
||
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. | ||
OpenTelemetry is *not* an observability backend like Jaeger, Prometheus, or other | ||
commercial vendors. OpenTelemetry is focused on the generation, collection, | ||
management, and export of telemetry. A major goal of OpenTelemetry is that you | ||
can easily instrument your applications or systems, no matter their language, | ||
infrastructure, or runtime environment. Crucially, the storage and visualization | ||
of telemetry is intentionally left to other tools. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.