yao/trace/test_helpers.go
Max 3a46d98663 Enhance trace package functionality and improve concurrency handling
- Updated benchmark and memory leak detection commands in the Makefile to include both agent and trace components.
- Refactored the manager struct in `manager.go` to support cancellable contexts and added per-space locks for improved concurrency safety.
- Enhanced subscription handling in `subscription.go` to only broadcast updates if there are active subscribers, preventing unnecessary operations.
- Implemented comprehensive disk operations in `local/driver.go` and `store/driver.go` for managing trace nodes, spaces, and logs, including loading, saving, and deleting functionalities.
- Improved README documentation to clarify driver configurations and usage examples for trace management.
2025-11-18 15:47:44 +08:00

24 lines
528 B
Go

package trace
// TestDriver defines the test cases for both drivers
type TestDriver struct {
Name string
DriverType string
DriverOptions []any
}
// GetTestDrivers returns all drivers to test
func GetTestDrivers() []TestDriver {
return []TestDriver{
{
Name: "Local",
DriverType: Local,
DriverOptions: []any{}, // Use default (log directory)
},
{
Name: "Store",
DriverType: Store,
DriverOptions: []any{}, // Use default (__yao.store with __trace prefix)
},
}
}