-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Using component for no op host instead of component test #6058
Open
chahatsagarmain
wants to merge
7
commits into
jaegertracing:main
Choose a base branch
from
chahatsagarmain:componenttest
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+28
−7
Open
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1220b5d
Using component for no op host instead of component test
chahatsagarmain 9ce7751
[jaeger-v2] Enable Attributes Processor (#6066)
mahadzaryab1 f0edd49
Prepare release 1.62.0 / 2.0.0-rc2 (#6057)
albertteoh 975f8fb
host interface
chahatsagarmain c026ceb
Merge branch 'main' into componenttest
chahatsagarmain 5532991
added host to contructor
chahatsagarmain d29aab9
changed function parameter for host
chahatsagarmain 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,7 @@ type Factory struct { | |
config Config | ||
services *ClientPluginServices | ||
remoteConn *grpc.ClientConn | ||
host component.Host | ||
} | ||
|
||
type host struct { | ||
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. We don't need this type. |
||
|
@@ -76,9 +77,11 @@ func NewFactoryWithConfig( | |
cfg Config, | ||
metricsFactory metrics.Factory, | ||
logger *zap.Logger, | ||
host component.Host, | ||
) (*Factory, error) { | ||
f := NewFactory() | ||
f.config = cfg | ||
f.host = host | ||
if err := f.Initialize(metricsFactory, logger); err != nil { | ||
return nil, err | ||
} | ||
|
@@ -115,8 +118,8 @@ func (f *Factory) Initialize(metricsFactory metrics.Factory, logger *zap.Logger) | |
for _, opt := range opts { | ||
clientOpts = append(clientOpts, configgrpc.WithGrpcDialOption(opt)) | ||
} | ||
host := NewHost() | ||
return f.config.ToClientConn(context.Background(), host, telset, clientOpts...) | ||
|
||
return f.config.ToClientConn(context.Background(), f.host, telset, clientOpts...) | ||
} | ||
|
||
var err error | ||
|
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
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.
you don't need to create a new host, its passed into this method. Just change the
_
in the function signature to behost
and pass that in here.