-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[v2][storage] Add dependency store to v2 storage interface #6297
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
Changes from 19 commits
20c9702
8c00ee1
2fb8fc8
1ce9ffe
81010bf
7aae69b
934ca7a
a5e470d
daae5b9
424d845
9ce6576
e395f52
d07eebc
aa112ed
bcdc86d
55d3d19
f43ec56
4254ab4
38d0807
49de2c2
47d5f2c
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 |
|---|---|---|
|
|
@@ -21,6 +21,7 @@ | |
| "github.com/jaegertracing/jaeger/plugin/storage/grpc" | ||
| "github.com/jaegertracing/jaeger/plugin/storage/memory" | ||
| "github.com/jaegertracing/jaeger/storage" | ||
| "github.com/jaegertracing/jaeger/storage_v2/depstore" | ||
| "github.com/jaegertracing/jaeger/storage_v2/factoryadapter" | ||
| "github.com/jaegertracing/jaeger/storage_v2/tracestore" | ||
| ) | ||
|
|
@@ -74,7 +75,15 @@ | |
| return mf, nil | ||
| } | ||
|
|
||
| func GetStorageFactoryV2(name string, host component.Host) (tracestore.Factory, error) { | ||
| func GetTraceStoreFactory(name string, host component.Host) (tracestore.Factory, error) { | ||
yurishkuro marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| return getV2FactoryAdapter(name, host) | ||
| } | ||
|
|
||
| func GetDependencyStoreFactory(name string, host component.Host) (depstore.Factory, error) { | ||
|
||
| return getV2FactoryAdapter(name, host) | ||
| } | ||
|
|
||
| func getV2FactoryAdapter(name string, host component.Host) (*factoryadapter.Factory, error) { | ||
| f, err := GetStorageFactory(name, host) | ||
| if err != nil { | ||
| return nil, err | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| // Copyright (c) 2024 The Jaeger Authors. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| package depstore | ||
|
|
||
| import "github.com/jaegertracing/jaeger/storage_v2" | ||
|
|
||
| type Factory interface { | ||
| storage_v2.FactoryBase | ||
yurishkuro marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| CreateDependencyReader() (Reader, error) | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
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 for v1, the factory adapter is created directly so we have direct access to this function - is this okay?
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.
yes