Skip to content

Commit 76a4fbd

Browse files
authored
Merge pull request #1 from kaifastromai/kaifastromai-public-writer-new
Kaifastromai public writer new
2 parents a0126b2 + 7cf745c commit 76a4fbd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1847
-3922
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,5 @@
1111
# David contributed the Registry implementation.
1212
/tracing-subscriber/registry @davidbarsky @hawkw @tokio-rs/tracing
1313

14-
# Julian contributed the OpenTelemetry implementation.
15-
/tracing-opentelemetry/ @jtescher @tokio-rs/tracing
16-
1714
# Zeki contributed the TracingAppender implementation
1815
/tracing-appender/ @zekisherif @tokio-rs/tracing

.github/workflows/CI.yml

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,11 @@ jobs:
8585
- tracing-macros
8686
- tracing-serde
8787
- tracing-tower
88-
- tracing-opentelemetry
8988
- tracing
9089
- tracing-subscriber
9190
steps:
9291
- uses: actions/checkout@v3
9392
- uses: dtolnay/rust-toolchain@stable
94-
9593
- name: install cargo-hack
9694
uses: taiki-e/install-action@cargo-hack
9795
- name: cargo hack check
@@ -123,7 +121,7 @@ jobs:
123121
shell: bash
124122

125123
check-msrv:
126-
# Run `cargo check` on our minimum supported Rust version (1.49.0). This
124+
# Run `cargo check` on our minimum supported Rust version (1.56.0). This
127125
# checks with minimal versions; maximal versions are checked above.
128126
name: "cargo check (+MSRV -Zminimal-versions)"
129127
needs: check
@@ -143,27 +141,10 @@ jobs:
143141
- tracing-serde
144142
- tracing-subscriber
145143
- tracing-tower
146-
- tracing-opentelemetry
147144
- tracing
148145
toolchain:
149-
- 1.49.0
146+
- 1.56.0
150147
- stable
151-
# TODO(eliza): remove this when appender is on the same MSRV.
152-
# same for tracing subscriber
153-
exclude:
154-
- subcrate: tracing-appender
155-
toolchain: 1.49.0
156-
- subcrate: tracing-subscriber
157-
toolchain: 1.49.0
158-
- subcrate: tracing-opentelemetry
159-
toolchain: 1.49.0
160-
include:
161-
- subcrate: tracing-appender
162-
toolchain: 1.53.0
163-
- subcrate: tracing-subscriber
164-
toolchain: 1.50.0
165-
- subcrate: tracing-opentelemetry
166-
toolchain: 1.56.0
167148
steps:
168149
- uses: actions/checkout@v3
169150
- name: install Rust nightly
@@ -266,7 +247,6 @@ jobs:
266247
- tracing-journald
267248
- tracing-log
268249
- tracing-macros
269-
- tracing-opentelemetry
270250
- tracing-serde
271251
- tracing-subscriber
272252
- tracing-tower

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ members = [
1111
"tracing-log",
1212
"tracing-macros",
1313
"tracing-mock",
14-
"tracing-opentelemetry",
1514
"tracing-subscriber",
1615
"tracing-serde",
1716
"tracing-appender",

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -254,14 +254,14 @@ attachment that `Future::instrument` does.
254254
## Supported Rust Versions
255255

256256
Tracing is built against the latest stable release. The minimum supported
257-
version is 1.49. The current Tracing version is not guaranteed to build on Rust
257+
version is 1.56. The current Tracing version is not guaranteed to build on Rust
258258
versions earlier than the minimum supported version.
259259

260260
Tracing follows the same compiler support policies as the rest of the Tokio
261261
project. The current stable Rust compiler and the three most recent minor
262262
versions before it will always be supported. For example, if the current stable
263-
compiler version is 1.45, the minimum supported version will not be increased
264-
past 1.42, three minor versions prior. Increasing the minimum supported compiler
263+
compiler version is 1.69, the minimum supported version will not be increased
264+
past 1.66, three minor versions prior. Increasing the minimum supported compiler
265265
version is not considered a semver breaking change as long as doing so complies
266266
with this policy.
267267

@@ -307,11 +307,6 @@ The crates included as part of Tracing are:
307307

308308
* [`tracing-log`]: Compatibility with the `log` crate (unstable).
309309

310-
* [`tracing-opentelemetry`]: Provides a layer that connects spans from multiple
311-
systems into a trace and emits them to [OpenTelemetry]-compatible distributed
312-
tracing systems for processing and visualization.
313-
([crates.io][otel-crates]|[docs][otel-docs])
314-
315310
* [`tracing-serde`]: A compatibility layer for serializing trace data with
316311
`serde` (unstable).
317312

@@ -339,7 +334,6 @@ The crates included as part of Tracing are:
339334
[`tracing-macros`]: tracing-macros
340335
[`tracing-attributes`]: tracing-attributes
341336
[`tracing-log`]: tracing-log
342-
[`tracing-opentelemetry`]: tracing-opentelemetry
343337
[`tracing-serde`]: tracing-serde
344338
[`tracing-subscriber`]: tracing-subscriber
345339
[`tracing-tower`]: tracing-tower
@@ -409,6 +403,7 @@ are not maintained by the `tokio` project. These include:
409403
- [`tracing-logfmt`] provides a layer that formats events and spans into the logfmt format.
410404
- [`tracing-chrome`] provides a layer that exports trace data that can be viewed in `chrome://tracing`.
411405
- [`reqwest-tracing`] provides a middleware to trace [`reqwest`] HTTP requests.
406+
- [`tracing-cloudwatch`] provides a layer that sends events to AWS CloudWatch Logs.
412407

413408
(if you're the maintainer of a `tracing` ecosystem crate not in this list,
414409
please let us know!)
@@ -451,6 +446,7 @@ please let us know!)
451446
[`tracing-chrome`]: https://crates.io/crates/tracing-chrome
452447
[`reqwest-tracing`]: https://crates.io/crates/reqwest-tracing
453448
[`reqwest`]: https://crates.io/crates/reqwest
449+
[`tracing-cloudwatch`]: https://crates.io/crates/tracing-cloudwatch
454450

455451
**Note:** that some of the ecosystem crates are currently unreleased and
456452
undergoing active development. They may be less stable than `tracing` and
@@ -466,14 +462,17 @@ Tracing.
466462
* [Diagnostics with Tracing][tokio-blog-2019-08] on the Tokio blog, August 2019
467463
* [Production-Grade Logging in Rust Applications][production-logging-2020], November 2020
468464
* [Custom Logging in Rust using `tracing` and `tracing-subscriber`, part 1][custom-logging-part-1] and [part 2][custom-logging-part-2], October 2021
465+
* [Instrumenting Axum projects][detsys-blog-2023-08], August 2023
469466

470467
[tokio-blog-2019-08]: https://tokio.rs/blog/2019-08-tracing/
468+
[detsys-blog-2023-08]: https://determinate.systems/posts/instrumenting-axum
471469

472470
#### Talks
473471

474472
* [Bay Area Rust Meetup talk and Q&A][bay-rust-2019-03], March 2019
475473
* [RustConf 2019 talk][rust-conf-2019-08-video] and [slides][rust-conf-2019-08-slides], August 2019
476474
* [Are we observable yet? @ RustyDays talk][rusty-days-2020-08-video] and [slides][rusty-days-2020-08-slides], August 2020
475+
* [Crabs with instruments!][tremorcon-2021-09], September 2021
477476

478477
[bay-rust-2019-03]: https://www.youtube.com/watch?v=j_kXRg3zlec
479478
[rust-conf-2019-08-video]: https://www.youtube.com/watch?v=JjItsfqFIdo
@@ -483,6 +482,7 @@ Tracing.
483482
[production-logging-2020]: https://medium.com/better-programming/production-grade-logging-in-rust-applications-2c7fffd108a6
484483
[custom-logging-part-1]: https://burgers.io/custom-logging-in-rust-using-tracing
485484
[custom-logging-part-2]: https://burgers.io/custom-logging-in-rust-using-tracing-part-2
485+
[tremorcon-2021-09]: https://www.youtube.com/watch?v=ZC7fyqshun8
486486

487487
Help us expand this list! If you've written or spoken about Tracing, or
488488
know of resources that aren't listed, please open a pull request adding them.

SECURITY.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Security Policy
2+
3+
Tracing is part of the Tokio project and uses the same security policy as [Tokio][tokio-security].
4+
5+
## Report a security issue
6+
7+
The process for reporting an issue is the same as for [Tokio][tokio-security]. This includes private reporting via [email protected].
8+
9+
[tokio-security]: https://github.com/tokio-rs/tokio/security/policy

examples/Cargo.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "tracing-examples"
33
version = "0.0.0"
44
publish = false
55
edition = "2018"
6-
rust-version = "1.49.0"
6+
rust-version = "1.56.0"
77

88
[features]
99
default = []
@@ -21,7 +21,6 @@ tracing-futures = { version = "0.3", path = "../tracing-futures", features = ["f
2121
tracing-attributes = { path = "../tracing-attributes", version = "0.2"}
2222
tracing-log = { path = "../tracing-log", version = "0.2", features = ["env_logger"] }
2323
tracing-serde = { path = "../tracing-serde" }
24-
tracing-opentelemetry = { path = "../tracing-opentelemetry" }
2524
tracing-appender = { path = "../tracing-appender" }
2625
tracing-journald = { path = "../tracing-journald" }
2726

@@ -51,10 +50,6 @@ log = "0.4.17"
5150
inferno = "0.11.6"
5251
tempfile = "3.3.0"
5352

54-
# opentelemetry example
55-
opentelemetry = { version = "0.18.0", default-features = false, features = ["trace"] }
56-
opentelemetry-jaeger = "0.17.0"
57-
5853
# fmt examples
5954
snafu = "0.6.10"
6055
thiserror = "1.0.31"

examples/README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ This directory contains a collection of examples that demonstrate the use of the
6565
unstructured logs from dependencies as `tracing` events, by instrumenting
6666
[this example][echo] from `hyper`, and using `tracing-log` to record logs
6767
emitted by `hyper`.
68-
- **tracing-opentelemetry**:
69-
+ `opentelemetry`: Demonstrates how `tracing-opentelemetry` can be used to
70-
export and visualize `tracing` span data.
71-
+ `opentelemetry-remote-context`: Demonstrates how `tracing-opentelemetry`
72-
can be used to extract and inject remote context when traces span multiple
73-
systems.
7468

7569
[tasks]: (https://docs.rs/tokio/0.2.21/tokio/task/index.html)
7670
[tokio-proxy]: https://github.com/tokio-rs/tokio/blob/v0.1.x/tokio/examples/proxy.rs

examples/examples/opentelemetry-remote-context.rs

Lines changed: 0 additions & 46 deletions
This file was deleted.

examples/examples/opentelemetry.rs

Lines changed: 0 additions & 49 deletions
This file was deleted.

tracing-appender/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ Rust versions earlier than the minimum supported version.
152152
Tracing follows the same compiler support policies as the rest of the Tokio
153153
project. The current stable Rust compiler and the three most recent minor
154154
versions before it will always be supported. For example, if the current
155-
stable compiler version is 1.45, the minimum supported version will not be
156-
increased past 1.42, three minor versions prior. Increasing the minimum
155+
stable compiler version is 1.69, the minimum supported version will not be
156+
increased past 1.66, three minor versions prior. Increasing the minimum
157157
supported compiler version is not considered a semver breaking change as
158158
long as doing so complies with this policy.
159159

tracing-appender/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@
116116
//! Tracing follows the same compiler support policies as the rest of the Tokio
117117
//! project. The current stable Rust compiler and the three most recent minor
118118
//! versions before it will always be supported. For example, if the current
119-
//! stable compiler version is 1.45, the minimum supported version will not be
120-
//! increased past 1.42, three minor versions prior. Increasing the minimum
119+
//! stable compiler version is 1.69, the minimum supported version will not be
120+
//! increased past 1.66, three minor versions prior. Increasing the minimum
121121
//! supported compiler version is not considered a semver breaking change as
122122
//! long as doing so complies with this policy.
123123
//!

tracing-attributes/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,22 @@ keywords = ["logging", "tracing", "macro", "instrument", "log"]
2828
license = "MIT"
2929
readme = "README.md"
3030
edition = "2018"
31-
rust-version = "1.49.0"
31+
rust-version = "1.56.0"
3232

3333
[lib]
3434
proc-macro = true
3535

3636
[dependencies]
3737
proc-macro2 = "1.0.40"
38-
syn = { version = "1.0.98", default-features = false, features = ["full", "parsing", "printing", "visit", "visit-mut", "clone-impls", "extra-traits", "proc-macro"] }
38+
syn = { version = "2.0", default-features = false, features = ["full", "parsing", "printing", "visit-mut", "clone-impls", "extra-traits", "proc-macro"] }
3939
quote = "1.0.20"
4040

4141
[dev-dependencies]
4242
tracing = { path = "../tracing", version = "0.2" }
4343
tracing-mock = { path = "../tracing-mock", features = ["tokio-test"] }
4444
tokio-test = "0.4.2"
4545
tracing-subscriber = { path = "../tracing-subscriber", version = "0.3", features = ["env-filter"] }
46-
async-trait = "0.1.56"
46+
async-trait = "0.1.67"
4747
trybuild = "1.0.64"
4848
rustversion = "1.0.9"
4949

tracing-attributes/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ structured, event-based diagnostic information. This crate provides the
3737

3838
Note that this macro is also re-exported by the main `tracing` crate.
3939

40-
*Compiler support: [requires `rustc` 1.49+][msrv]*
40+
*Compiler support: [requires `rustc` 1.56+][msrv]*
4141

4242
[msrv]: #supported-rust-versions
4343

@@ -69,14 +69,14 @@ pub fn my_function(my_arg: usize) {
6969
## Supported Rust Versions
7070

7171
Tracing is built against the latest stable release. The minimum supported
72-
version is 1.49. The current Tracing version is not guaranteed to build on Rust
72+
version is 1.56. The current Tracing version is not guaranteed to build on Rust
7373
versions earlier than the minimum supported version.
7474

7575
Tracing follows the same compiler support policies as the rest of the Tokio
7676
project. The current stable Rust compiler and the three most recent minor
7777
versions before it will always be supported. For example, if the current stable
78-
compiler version is 1.45, the minimum supported version will not be increased
79-
past 1.42, three minor versions prior. Increasing the minimum supported compiler
78+
compiler version is 1.69, the minimum supported version will not be increased
79+
past 1.66, three minor versions prior. Increasing the minimum supported compiler
8080
version is not considered a semver breaking change as long as doing so complies
8181
with this policy.
8282

0 commit comments

Comments
 (0)