Documentation ¶
Index ¶
- Variables
- func Logger(ctx context.Context) *zap.Logger
- func ModuleExecutionTracing(ctx context.Context) bool
- func ReqStats(ctx context.Context) metrics.Stats
- func Tracer(ctx context.Context) ttrace.Tracer
- func WithModuleExecutionTracing(ctx context.Context) context.Context
- func WithReqStats(ctx context.Context, stats metrics.Stats) context.Context
- func WithRequest(ctx context.Context, req *RequestDetails) context.Context
- func WithTracer(ctx context.Context, tracer ttrace.Tracer) context.Context
- type ISpan
- type IsOutputModuleFunc
- type RequestDetails
- func (d *RequestDetails) IsOutputModule(modName string) bool
- func (d *RequestDetails) ShouldReturnProgressMessages() bool
- func (d *RequestDetails) ShouldReturnWrittenPartials(modName string) bool
- func (d *RequestDetails) ShouldStreamCachedOutputs() bool
- func (d *RequestDetails) SkipSnapshotSave(modName string) bool
- func (d *RequestDetails) UniqueIDString() string
- type TracingConf
Constants ¶
This section is empty.
Variables ¶
View Source
var WithLogger = logging.WithLogger
Functions ¶
func ModuleExecutionTracing ¶ added in v1.1.4
func WithModuleExecutionTracing ¶ added in v1.1.4
func WithRequest ¶
func WithRequest(ctx context.Context, req *RequestDetails) context.Context
Types ¶
type ISpan ¶
func WithModuleExecutionSpan ¶ added in v1.1.4
type IsOutputModuleFunc ¶ added in v0.1.0
type RequestDetails ¶ added in v0.1.0
type RequestDetails struct { Modules *pbsubstreams.Modules DebugInitialStoreSnapshotForModules []string OutputModule string // What the user requested, derived from either the Request.StartBlockNum or Request.Cursor ResolvedStartBlockNum uint64 ResolvedCursor string LinearHandoffBlockNum uint64 StopBlockNum uint64 MaxParallelJobs uint64 UniqueID uint64 ProductionMode bool IsSubRequest bool }
func Details ¶
func Details(ctx context.Context) *RequestDetails
func (*RequestDetails) IsOutputModule ¶ added in v0.1.0
func (d *RequestDetails) IsOutputModule(modName string) bool
func (*RequestDetails) ShouldReturnProgressMessages ¶ added in v0.1.0
func (d *RequestDetails) ShouldReturnProgressMessages() bool
func (*RequestDetails) ShouldReturnWrittenPartials ¶ added in v1.0.2
func (d *RequestDetails) ShouldReturnWrittenPartials(modName string) bool
func (*RequestDetails) ShouldStreamCachedOutputs ¶ added in v0.1.0
func (d *RequestDetails) ShouldStreamCachedOutputs() bool
func (*RequestDetails) SkipSnapshotSave ¶ added in v0.1.0
func (d *RequestDetails) SkipSnapshotSave(modName string) bool
Called to determine if we *really* need to save this store snapshot. We don't need when we're doing parallel processing and we are concerned only with writing the leaf stores we've been asked to produce. We know the scheduler will have created jobs to produce those stores we're skipping here.
func (*RequestDetails) UniqueIDString ¶ added in v1.1.4
func (d *RequestDetails) UniqueIDString() string
type TracingConf ¶ added in v1.1.4
type TracingConf struct {
ModuleExecution bool
}
func NewTracingConf ¶ added in v1.1.4
func NewTracingConf( moduleExecution bool, ) *TracingConf
Click to show internal directories.
Click to hide internal directories.