-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport PR #2535 to release/v1.7 for feat/add-otel-rust #2609
Conversation
* feat: add observability crate Signed-off-by: hlts2 <[email protected]> * fix: fix crate name Signed-off-by: hlts2 <[email protected]> * feat: add module files Signed-off-by: hlts2 <[email protected]> * feat: create config Signed-off-by: hlts2 <[email protected]> * fix: implement from trait Signed-off-by: hlts2 <[email protected]> * feat: add tracer and meter macro Signed-off-by: hlts2 <[email protected]> * feat: add license Signed-off-by: hlts2 <[email protected]> * fix: use full module path Signed-off-by: hlts2 <[email protected]> * fix: add shutdown method Signed-off-by: hlts2 <[email protected]> * feat: add build method to crate tracer provider and meter provider Signed-off-by: hlts2 <[email protected]> * fix: module path Signed-off-by: hlts2 <[email protected]> * fix: add export timeout duration and comment Signed-off-by: hlts2 <[email protected]> * feat: update interface Signed-off-by: hlts2 <[email protected]> * feat: add endpint configuration to root configuration Signed-off-by: hlts2 <[email protected]> * fix: update deps Signed-off-by: hlts2 <[email protected]> * fix: small refactor Signed-off-by: hlts2 <[email protected]> * fix: deleted build method to create trace and metrics provider Signed-off-by: hlts2 <[email protected]> --------- Signed-off-by: hlts2 <[email protected]>
WalkthroughWalkthroughThis pull request introduces a comprehensive observability module for a Rust application, encompassing configuration, macros, and core functionality for metrics and tracing using OpenTelemetry. Key components include a Changes
Sequence Diagram(s)sequenceDiagram
participant App
participant Config
participant ObservabilityImpl
participant MetricsProvider
participant TracerProvider
App->>Config: Create new Config
App->>ObservabilityImpl: Initialize with Config
ObservabilityImpl->>MetricsProvider: Setup metrics pipeline
ObservabilityImpl->>TracerProvider: Setup tracer pipeline
App->>ObservabilityImpl: Shutdown
ObservabilityImpl->>MetricsProvider: Flush and shutdown
ObservabilityImpl->>TracerProvider: Flush and shutdown
Suggested labels
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (4)
Additional comments not posted (9)
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? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
[CHATOPS:HELP] ChatOps commands.
|
Description
Backport: #2535
Related Issue
Versions
Checklist
Special notes for your reviewer
Summary by CodeRabbit
New Features
Documentation