-
Notifications
You must be signed in to change notification settings - Fork 317
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
chore: get processor namespace, instanceID during setup #4718
Conversation
Important Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Tip Early Access Features
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 as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4718 +/- ##
==========================================
+ Coverage 74.60% 74.80% +0.19%
==========================================
Files 414 414
Lines 48546 48548 +2
==========================================
+ Hits 36220 36315 +95
+ Misses 9954 9880 -74
+ Partials 2372 2353 -19 ☔ View full report in Codecov by Sentry. |
@@ -13,8 +13,9 @@ import ( | |||
) | |||
|
|||
func Benchmark_makeCommonMetadataFromSingularEvent(b *testing.B) { |
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.
What's the difference in benchmark? Although in isolation isolation rlocks won't have much impact
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 was added a couple years ago. When we changed some json parsing logic inside. No intention to benchmark anything now.
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.
just out of curiosity, is there any observable difference if you run the same benchmark before and after the change?
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.
current PR:
goos: darwin
goarch: arm64
pkg: github.com/rudderlabs/rudder-server/processor
Benchmark_makeCommonMetadataFromSingularEvent-10 3478596 335.6 ns/op 544 B/op 2 allocs/op
PASS
ok github.com/rudderlabs/rudder-server/processor 4.636s
master:
goos: darwin
goarch: arm64
pkg: github.com/rudderlabs/rudder-server/processor
Benchmark_makeCommonMetadataFromSingularEvent-10 1794634 655.5 ns/op 640 B/op 8 allocs/op
PASS
ok github.com/rudderlabs/rudder-server/processor 4.750s
Description
Instead of
config.Get...
ing the same thing(kube namespace, instanceID) for every event, we may fetch it once and use that information for all.Linear Ticket
Resolves PIPE-1072
Security