-
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
[jaeger-v2] Add support for GRPC storarge #5228
Changes from 6 commits
ee39180
2798a45
709bb09
f50daec
c65ddfc
05d2c05
992b223
cd405ef
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
service: | ||
extensions: [jaeger_storage, jaeger_query] | ||
pipelines: | ||
traces: | ||
receivers: [otlp] | ||
processors: [batch] | ||
exporters: [jaeger_storage_exporter] | ||
|
||
extensions: | ||
jaeger_query: | ||
trace_storage: external-storage | ||
trace_storage_archive: external-storage-archive | ||
ui_config: ./cmd/jaeger/config-ui.json | ||
|
||
jaeger_storage: | ||
grpc: | ||
external-storage: | ||
server: localhost:17271 | ||
connection-timeout: 5s | ||
external-storage-archive: | ||
server: localhost:17281 | ||
connection-timeout: 5s | ||
|
||
receivers: | ||
otlp: | ||
protocols: | ||
grpc: | ||
http: | ||
|
||
processors: | ||
batch: | ||
|
||
exporters: | ||
jaeger_storage_exporter: | ||
trace_storage: external-storage |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,14 +96,20 @@ func (s *gRPCServer) Restart() error { | |
|
||
type GRPCStorageIntegrationTestSuite struct { | ||
StorageIntegration | ||
logger *zap.Logger | ||
flags []string | ||
server *gRPCServer | ||
logger *zap.Logger | ||
flags []string | ||
factory *grpc.Factory | ||
server *gRPCServer | ||
} | ||
|
||
func (s *GRPCStorageIntegrationTestSuite) initialize() error { | ||
s.logger, _ = testutils.NewLogger() | ||
|
||
if s.factory != nil { | ||
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. how would it be not nil at this point if the factory is only created in L119? Is it from another run of the test? If so we should close it as part of the clean-up, not as part of starting a new test 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. Okay, my initial thought was because it restarts the server when initializing, so I think it makes sense if I put it there too. But, moving it to the clean-up process does make things clearer. I've changed it. |
||
if err := s.factory.Close(); err != nil { | ||
return err | ||
} | ||
} | ||
if s.server != nil { | ||
if err := s.server.Restart(); err != nil { | ||
return err | ||
|
@@ -120,6 +126,7 @@ func (s *GRPCStorageIntegrationTestSuite) initialize() error { | |
if err := f.Initialize(metrics.NullFactory, s.logger); err != nil { | ||
return err | ||
} | ||
s.factory = f | ||
|
||
if s.SpanWriter, err = f.CreateSpanWriter(); err != nil { | ||
return err | ||
|
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.