-
Notifications
You must be signed in to change notification settings - Fork 0
Plugins: Chore: Renamed instrumentation middleware to metrics middleware #8
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
Plugins: Chore: Renamed instrumentation middleware to metrics middleware #8
Conversation
…are (#76186) * Plugins: Chore: Renamed instrumentation middleware to metrics middleware * Removed repeated logger attributes in middleware and contextual logger * renamed loggerParams to logParams * PR review suggestion * Add contextual logger middleware * Removed unused params from logRequest * Removed unwanted changes * Safer FromContext method * Removed traceID from logParams
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Greptile OverviewConfidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Client
participant TracingMW as TracingMiddleware
participant MetricsMW as MetricsMiddleware
participant ContextualLoggerMW as ContextualLoggerMiddleware
participant LoggerMW as LoggerMiddleware
participant Plugin as Plugin Backend
Client->>TracingMW: QueryData(ctx, req)
TracingMW->>MetricsMW: QueryData(ctx, req)
Note over MetricsMW: Track request metrics<br/>(count, duration, size)
MetricsMW->>ContextualLoggerMW: QueryData(ctx, req)
Note over ContextualLoggerMW: Add contextual attributes to ctx<br/>(endpoint, pluginId, dsName, uname)
ContextualLoggerMW->>LoggerMW: QueryData(enriched_ctx, req)
Note over LoggerMW: Extract logger from context<br/>using FromContext()
LoggerMW->>Plugin: QueryData(enriched_ctx, req)
Plugin-->>LoggerMW: response
Note over LoggerMW: Log request completion<br/>with contextual info
LoggerMW-->>ContextualLoggerMW: response
ContextualLoggerMW-->>MetricsMW: response
Note over MetricsMW: Record metrics with labels
MetricsMW-->>TracingMW: response
TracingMW-->>Client: response
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8 files reviewed, no comments
|
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 2 weeks if no further activity occurs. Please feel free to give a status update or ping for review. Thank you for your contributions! |
|
This pull request has been automatically closed because it has not had any further activity in the last 2 weeks. Thank you for your contributions! |
Test 3
Replicated from ai-code-review-evaluation/grafana-greptile#3