Skip to content

Plugins: Chore: Renamed instrumentation middleware to metrics middleware - #8

Closed
akshayutture-augment wants to merge 1 commit into
mainfrom
plugins/rename-instrumentation-middleware-to-metrics-middleware
Closed

Plugins: Chore: Renamed instrumentation middleware to metrics middleware#8
akshayutture-augment wants to merge 1 commit into
mainfrom
plugins/rename-instrumentation-middleware-to-metrics-middleware

Conversation

@akshayutture-augment

@akshayutture-augment akshayutture-augment commented Nov 17, 2025

Copy link
Copy Markdown

No description provided.

…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

@augmentcode augmentcode Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 1 suggestion posted.

Comment augment review to trigger a new review at any time.

return log.WithContextualAttributes(ctx, p)
}

func (m *ContextualLoggerMiddleware) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider guarding against nil requests before accessing req.PluginContext to avoid a potential nil-pointer panic (also applies to CallResource, CheckHealth, and CollectMetrics).

🤖 Was this useful? React with 👍 or 👎

@github-actions

Copy link
Copy Markdown

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!

@github-actions github-actions Bot added the stale label Dec 18, 2025
@github-actions

github-actions Bot commented Jan 1, 2026

Copy link
Copy Markdown

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant