Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSafe ¶
func NewSafe(repo trace.Repository, logger *slog.Logger) trace.Repository
NewSafe wraps a trace.Repository so that Save errors are logged as warnings instead of being returned. This prevents trace storage failures from affecting agent execution.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository implements trace.Repository for GCS backend storage.
func New ¶
func New(ctx context.Context, bucket string, opts ...option.ClientOption) (*Repository, error)
New creates a new GCS Trace Repository.
func (*Repository) Close ¶
func (r *Repository) Close() error
Close closes the underlying GCS client.
func (*Repository) WithPrefix ¶
func (r *Repository) WithPrefix(prefix string) *Repository
WithPrefix sets the object prefix for trace data.
Click to show internal directories.
Click to hide internal directories.