-
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][storage] Move span reader decorator to storage factories #6280
Merged
yurishkuro
merged 22 commits into
jaegertracing:main
from
mahadzaryab1:storage-factory-metrics
Nov 30, 2024
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
a2ee10e
Add Storage Metrics To Memory Span Reader
mahadzaryab1 a156666
Add Storage Metrics To Badger Span Reader
mahadzaryab1 3584e8c
Add Storage Metrics To Cassandra Span Reader
mahadzaryab1 b25b893
Add Storage Metrics To ElasticSearch Span Reader
mahadzaryab1 d7d2bc9
Add Storage Metrics To GRPC Span Reader
mahadzaryab1 b63af21
Remove Decorator From Query Extension
mahadzaryab1 294c5d0
Namespace Metrics Factory During Initialization In Meta Factory
mahadzaryab1 f8192a0
Remove Span Reader Decorator In All In One And Query
mahadzaryab1 6f678c5
Address Feedback From PR Review
mahadzaryab1 6ac1aea
Standardize Primary And Archive Metrics In Cassandra Factory
mahadzaryab1 6744399
Standardize Metrics In ES Storage
mahadzaryab1 0fd8360
Standardize Metrics In Memory Storage
mahadzaryab1 f7547da
Standardize Metrics In GRPC Storage
mahadzaryab1 214aac0
Remove Unused Metrics Factory From ES Reader
mahadzaryab1 e6e8704
Move Metrics Assignments To Initialize
mahadzaryab1 83aa823
Move Metrics Assignments To Initialize
mahadzaryab1 46ab305
Fix Test Assertions
mahadzaryab1 343c90d
Use Different Factory For Sampling
mahadzaryab1 b9b5972
Use Base Factory For Dep Reader
mahadzaryab1 a5a673f
Use Primary Factory For Dep Reader
mahadzaryab1 6d9e80b
Merge branch 'main' into storage-factory-metrics
yurishkuro d0319f1
Merge branch 'main' into storage-factory-metrics
yurishkuro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back 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.
Why not keep these two here? Otherwise you're duplicating namespace assignments twice, which means they can get out of sync.
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 Done. However,
CreateSamplingStore
(https://github.com/jaegertracing/jaeger/blob/main/plugin/storage/cassandra/factory.go#L211) andCreateDependencyReader
(https://github.com/jaegertracing/jaeger/blob/main/plugin/storage/cassandra/factory.go#L175) will now have therole=primary
attached to the metrics they emit. Is this fine? or should they just be emitting metrics under the namespace passed into the storage factory without the role tag?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.
I think sampling store should be
kind=cassandra, role=sampling
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 Done. What about the dependency reader? I'm using the base factory for 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.
what would it look like? Dependencies technically were always bundled within the spanstore, not a different "role".
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 metrics would be published under
jaeger_storage_***
withkind=cassandra
but norole
tag.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.
that's fine
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.
although since it's using the primary connection / session I would pass it the primary metrics
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.
done