-
Notifications
You must be signed in to change notification settings - Fork 0
feat(model): enable key features by default #245
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 |
|---|---|---|
|
|
@@ -115,17 +115,25 @@ var DefaultConfig = ShellTimeConfig{ | |
| FlushCount: 10, | ||
| // 2 weeks by default | ||
| GCTime: 14, | ||
| DataMasking: nil, | ||
| DataMasking: new(true), | ||
| Endpoints: nil, | ||
| EnableMetrics: nil, | ||
| Encrypted: nil, | ||
| Encrypted: new(true), | ||
| AI: DefaultAIConfig, | ||
| Exclude: []string{}, | ||
| CCUsage: nil, | ||
| CCOtel: nil, // deprecated | ||
| AICodeOtel: nil, | ||
| CodeTracking: nil, | ||
| LogCleanup: nil, | ||
| CCUsage: new(CCUsage{ | ||
| Enabled: new(true), | ||
| }), | ||
| CCOtel: nil, | ||
| AICodeOtel: new(AICodeOtel{ | ||
| Enabled: new(true), | ||
| GRPCPort: 54027, | ||
| Debug: new(false), | ||
| }), | ||
| CodeTracking: new(CodeTracking{ | ||
| Enabled: new(true), | ||
| }), | ||
|
Comment on lines
+118
to
+135
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. These changes enable several features by default in In The other features enabled in this PR ( For consistency and to provide the benefits of these features (especially security-related ones like |
||
| LogCleanup: nil, | ||
|
|
||
| SocketPath: DefaultSocketPath, | ||
| } | ||
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 gRPC port
54027is hardcoded here and also inmodel/config.go:275. To avoid magic numbers and ensure consistency, it's better to define this as a constant, for exampleconst DefaultAICodeOtelGRPCPort = 54027at the package level, and use it in both places.