Skip to content

Commit

Permalink
Remove Archive Factory
Browse files Browse the repository at this point in the history
Signed-off-by: Mahad Zaryab <[email protected]>
  • Loading branch information
mahadzaryab1 committed Jan 18, 2025
1 parent 1780ea5 commit 1468260
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions storage/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package storage

import (
"context"
"errors"

"go.uber.org/zap"

Expand Down Expand Up @@ -61,23 +60,6 @@ type SamplingStoreFactory interface {
CreateSamplingStore(maxBuckets int) (samplingstore.Store, error)
}

var (
// ErrArchiveStorageNotConfigured can be returned by the ArchiveFactory when the archive storage is not configured.
ErrArchiveStorageNotConfigured = errors.New("archive storage not configured")

// ErrArchiveStorageNotSupported can be returned by the ArchiveFactory when the archive storage is not supported by the backend.
ErrArchiveStorageNotSupported = errors.New("archive storage not supported")
)

// ArchiveFactory is an additional interface that can be implemented by a factory to support trace archiving.
type ArchiveFactory interface {
// CreateArchiveSpanReader creates a spanstore.Reader.
CreateArchiveSpanReader() (spanstore.Reader, error)

// CreateArchiveSpanWriter creates a spanstore.Writer.
CreateArchiveSpanWriter() (spanstore.Writer, error)
}

// MetricStoreFactory defines an interface for a factory that can create implementations of different metrics storage components.
// Implementations are also encouraged to implement plugin.Configurable interface.
//
Expand Down

0 comments on commit 1468260

Please sign in to comment.