-
Notifications
You must be signed in to change notification settings - Fork 6
chore: update dependencies and refactor code #33
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,8 +1,8 @@ | ||||||||||
| import { | ||||||||||
| NodeSDK, | ||||||||||
| ATTR_SERVICE_NAME, | ||||||||||
| resourceFromAttributes, | ||||||||||
| } from "@mastra/core/telemetry/otel-vendor"; | ||||||||||
| //import { | ||||||||||
| // NodeSDK, | ||||||||||
| // ATTR_SERVICE_NAME, | ||||||||||
| // resourceFromAttributes, | ||||||||||
| //} from "@mastra/core/telemetry/otel-vendor"; | ||||||||||
| import type { Context, TextMapGetter} from "@opentelemetry/api"; | ||||||||||
|
||||||||||
| import type { Context, TextMapGetter} from "@opentelemetry/api"; | |
| import type { TextMapGetter } from "@opentelemetry/api"; |
Copilot
AI
Dec 11, 2025
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.
'TextMapGetter' is defined but never used.
| import type { Context, TextMapGetter} from "@opentelemetry/api"; | |
| import type { Context } from "@opentelemetry/api"; |
Copilot
AI
Dec 11, 2025
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.
'ROOT_CONTEXT' is defined but never used.
| import { ROOT_CONTEXT, context } from "@opentelemetry/api"; | |
| import { context } from "@opentelemetry/api"; |
Copilot
AI
Dec 11, 2025
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.
'context' is defined but never used.
| import { ROOT_CONTEXT, context } from "@opentelemetry/api"; | |
| import { ROOT_CONTEXT } from "@opentelemetry/api"; |
Copilot
AI
Dec 11, 2025
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.
The entire OpenTelemetry SDK initialization has been commented out, which means tracing will not work at all. If this is intentional for debugging purposes, it should be controlled via an environment variable rather than being commented out in the code. If tracing is being replaced with a different solution, that should be documented in the PR description.
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.
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -48,8 +48,8 @@ const nextConfig: NextConfig = { | |||||||||||||
| // cssChunking: true, | ||||||||||||||
| // craCompat: true, | ||||||||||||||
| // validateRSCRequestHeaders: true, | ||||||||||||||
| webpackMemoryOptimizations: true, | ||||||||||||||
| webpackBuildWorker: true, | ||||||||||||||
| // webpackMemoryOptimizations: true, | ||||||||||||||
| //7 webpackBuildWorker: true, | ||||||||||||||
|
Comment on lines
+51
to
+52
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Comment on lines
+51
to
+52
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor typo in comment. Line 52 has a malformed comment // webpackMemoryOptimizations: true,
- //7 webpackBuildWorker: true,
+ // webpackBuildWorker: true,📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||||||||||
| //7 webpackBuildWorker: true, | |
| // webpackBuildWorker: true, |
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.
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.
🛠️ Refactor suggestion | 🟠 Major
Remove commented-out dead code.
Per coding guidelines, avoid commenting out dead code. Use version control to preserve history instead. If the bundle analyzer is no longer needed, remove these lines entirely.
-//const withBundleAnalyzer = require('@next/bundle-analyzer')({
-// enabled: process.env.ANALYZE === 'true',
-//})
-//module.exports = withBundleAnalyzer({})
-
const withMDX = createMDX({🤖 Prompt for AI Agents
In next.config.ts around lines 68 to 71, remove the commented-out bundle
analyzer block (the three lines that require and invoke @next/bundle-analyzer)
because dead code should not be left commented; simply delete these commented
lines so the file contains only active code, relying on VCS history if the
analyzer is needed later.
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.
This import block is commented out. If it's no longer needed as part of the OpenTelemetry refactoring, it should be removed to keep the code clean and improve maintainability.