Skip to content

PipelineOptions

Defined in: packages/pipeline/src/create-pipeline.ts:45

Configuration of createPipeline.

optional behaviors?: readonly IPipelineBehavior<unknown, unknown>[]

Defined in: packages/pipeline/src/create-pipeline.ts:50

Instances of the behaviors that need dependencies, one per behavior class. A placed behavior without an instance is constructed with no arguments.


optional diagnostics?: DiagnosticsMode

Defined in: packages/pipeline/src/create-pipeline.ts:65

What a behavior contract violation does when a function or method is wrapped (module load or class definition): throw ('strict'), log a warning ('warn'), or nothing ('off').

'strict'

optional globalBehaviors?: GlobalBehaviorsOptions | GlobalBehaviorsOptions[]

Defined in: packages/pipeline/src/create-pipeline.ts:56

Behaviors applied to every wrapped function, by scope: before the call-site entries, after them. A behavior placed here and at a call site runs once, at its global position, with the call-site options shallowly merged over these.


optional logger?: PipelineLogger

Defined in: packages/pipeline/src/create-pipeline.ts:71

Receives the 'warn' diagnostics, and is the logger of a LoggingBehavior the pipeline constructs itself (one placed without an instance in behaviors).

console

optional sources?: ContextSources

Defined in: packages/pipeline/src/create-pipeline.ts:58

Where executions take their tenant and correlation id from.