mirror of
https://github.com/hanzoai/o11y.git
synced 2026-11-03 02:04:48 +00:00
Full rebrand of the SigNoz observability platform: - Go module: github.com/SigNoz/signoz → github.com/hanzoai/o11y - Frontend: @signozhq/* → @hanzo/o11y-*, posthog-js → @hanzo/insights - Docker: signoz/* → ghcr.io/hanzoai/o11y* - ClickHouse → Hanzo Datastore (hanzoai/datastore) - Env vars: SIGNOZ_* → HANZO_* - DB tables: signoz_* → o11y_* - All branding, URLs, docs updated - 2172 files changed
34 lines
859 B
Go
34 lines
859 B
Go
package noopsharder
|
|
|
|
import (
|
|
"context"
|
|
"math"
|
|
|
|
"github.com/hanzoai/o11y/pkg/factory"
|
|
"github.com/hanzoai/o11y/pkg/sharder"
|
|
)
|
|
|
|
type provider struct {
|
|
settings factory.ScopedProviderSettings
|
|
}
|
|
|
|
func NewFactory() factory.ProviderFactory[sharder.Sharder, sharder.Config] {
|
|
return factory.NewProviderFactory(factory.MustNewName("noop"), New)
|
|
}
|
|
|
|
func New(ctx context.Context, providerSettings factory.ProviderSettings, config sharder.Config) (sharder.Sharder, error) {
|
|
settings := factory.NewScopedProviderSettings(providerSettings, "github.com/hanzoai/o11y/pkg/sharder/noopsharder")
|
|
|
|
return &provider{
|
|
settings: settings,
|
|
}, nil
|
|
}
|
|
|
|
func (provider *provider) GetMyOwnedKeyRange(ctx context.Context) (uint32, uint32, error) {
|
|
return 0, math.MaxUint32, nil
|
|
}
|
|
|
|
func (provider *provider) IsMyOwnedKey(ctx context.Context, key uint32) error {
|
|
return nil
|
|
}
|