Closed hlts2 closed 1 month ago
[!IMPORTANT]
Review skipped
Review was skipped due to path filters
Files ignored due to path filters (1)
* `rust/Cargo.lock` is excluded by `!**/*.lock`You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
[CHATOPS:HELP] ChatOps commands.
/approve
- approve/format
- format codes and add licenses/gen-test
- generate test codes/label
- add labels/label actions/e2e-deploy
- run E2E deploy & integration testLatest commit: |
fcde1cf
|
Status: | ✅ Deploy successful! |
Preview URL: | https://13e87b74.vald.pages.dev |
Branch Preview URL: | https://feat-add-otel-rust.vald.pages.dev |
@kmrmt @kpango Thank you for your review! I will merge this PR 🚀
Description
I Introduced an observability crate using opentelemetry-rust.
Important aspects of design
Since opentelemetry-rust is still under development, interface changes may occur in the future. Therefore, this crate is designed to make the user as unaware of opentelemetry-rust as possible. If the interface is changed in the future, only the macro needs to be modified.
The following example is the generation of the trace.
fn child_function(ctx: &opentelemetry::Context, i: i32) { let ctx = ctx_span!(ctx, "child_function"); defer!(ctx.span().end());
}
Related Issue
Versions
Checklist
Special notes for your reviewer
Summary by CodeRabbit
Summary by CodeRabbit
New Features
observability
package for enhanced monitoring and tracing in Rust applications.Documentation