Skip to content

Commit

Permalink
Implement CreateDependencyReader
Browse files Browse the repository at this point in the history
Signed-off-by: Mahad Zaryab <[email protected]>
  • Loading branch information
mahadzaryab1 committed Nov 7, 2024
1 parent 4b97ffd commit 9be5d3e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"io"

storage_v1 "github.com/jaegertracing/jaeger/storage"
"github.com/jaegertracing/jaeger/storage/dependencystore"
"github.com/jaegertracing/jaeger/storage_v2/spanstore"
)

Expand Down Expand Up @@ -51,3 +52,8 @@ func (f *Factory) CreateTraceWriter() (spanstore.Writer, error) {
}
return NewTraceWriter(spanWriter), nil
}

// CreateDependencyReader creates a dependencystore.Reader.
func (f *Factory) CreateDependencyReader() (dependencystore.Reader, error) {
return f.ss.CreateDependencyReader()
}
4 changes: 4 additions & 0 deletions storage_v2/spanstore/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package spanstore

import (
"github.com/jaegertracing/jaeger/storage/dependencystore"
"github.com/jaegertracing/jaeger/storage_v2"
)

Expand All @@ -17,4 +18,7 @@ type Factory interface {

// CreateTraceWriter creates a spanstore.Writer.
CreateTraceWriter() (Writer, error)

// CreateDependencyReader creates a dependencystore.Reader.
CreateDependencyReader() (dependencystore.Reader, error)
}

0 comments on commit 9be5d3e

Please sign in to comment.