@@ -323,17 +323,26 @@ Create a new trace or load existing one from storage.
323323
324324** Drivers:**
325325
326- - ` trace.Local ` - Local disk storage (default path: ` ./traces ` )
327- - ` trace.Store ` - Gou store backend
326+ - ` trace.Local ` - Local disk storage (default: uses log directory from config, fallback to ` ./traces ` )
327+ - ` trace.Store ` - Gou store backend (default store: ` __yao.store ` , default prefix: ` __trace ` )
328328
329329** Example:**
330330
331331``` go
332+ // Local with default path (uses log directory from config)
333+ traceID , manager , _ := trace.New (ctx, trace.Local , nil )
334+
332335// Local with custom path
333336traceID , manager , _ := trace.New (ctx, trace.Local , nil , " /data/traces" )
334337
335- // Store with custom name
336- traceID , manager , _ := trace.New (ctx, trace.Store , nil , " my_traces" )
338+ // Store with default settings (uses __yao.store with __trace prefix)
339+ traceID , manager , _ := trace.New (ctx, trace.Store , nil )
340+
341+ // Store with custom store name
342+ traceID , manager , _ := trace.New (ctx, trace.Store , nil , " my_store" )
343+
344+ // Store with custom store name and prefix
345+ traceID , manager , _ := trace.New (ctx, trace.Store , nil , " my_store" , " my_prefix" )
337346
338347// With trace options
339348option := &types.TraceOption {
0 commit comments