-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[v2][adjuster] Rework adjuster interface and refactor adjusters to return implemented struct #6362
[v2][adjuster] Rework adjuster interface and refactor adjusters to return implemented struct #6362
Conversation
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6362 +/- ##
=======================================
Coverage 96.14% 96.14%
=======================================
Files 360 360
Lines 20479 20485 +6
=======================================
+ Hits 19689 19695 +6
Misses 603 603
Partials 187 187
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
internal/jotlp/package_test.go
Outdated
// Copyright (c) 2024 The Jaeger Authors. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package jotlp |
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.
on reflection, I think we should name this package jpdata, since that's the name of the data model we use
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.
@yurishkuro since we're usually operating on ptrace.Traces
- should we call it jptrace
?
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.
ah, yeah, that's better
Signed-off-by: Mahad Zaryab <[email protected]>
@@ -101,13 +102,13 @@ func TestResourceAttributesAdjuster_SpanWithConflictingLibraryAttributes(t *test | |||
require.True(t, ok) | |||
require.Equal(t, "Java", val.Str()) | |||
|
|||
val, ok = resultSpanAttributes.Get("jaeger.adjuster.warning") | |||
val, ok = resultSpanAttributes.Get(jptrace.WarningsAttribute) |
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.
nit: we should have GetWarnings() method instead (and the actual tag name could be private to the package)
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.
@yurishkuro implemented - can you take a look?
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
Which problem is this PR solving?
Description of the changes
Func
aliascmd/query/app/internal/jotlp
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test