UNPKG

@villedemontreal/workit-core

Version:

This package provides default and no-op implementations of the WorkIt types for client packages.

39 lines (38 loc) 1.41 kB
export declare const SERVICE_IDENTIFIER: { /** * You can bind your own logger. */ logger: symbol; /** * You can bind your own strategy by implmenting IFailureStrategy interface. */ failure_strategy: symbol; /** * You can bind your own strategy by implementing ISuccessStrategy interface. */ success_strategy: symbol; /** * You can bind your own process handler by implementing IProcessHandler interface. * Default is provided. */ process_handler: symbol; /** * Config to pass to the process handler */ process_handler_config: symbol; /** * You can get a new worker by using IoC * e.g IoC.get<Worker>(SERVICE_IDENTIFIER.worker); */ worker: symbol; /** * Pass your custom tracer or [NodeTracer](https://github.com/open-telemetry/opentelemetry-js/blob/master/packages/opentelemetry-node/src/NodeTracer.ts#L25) in order to trace operations in your worker. * `NodeTracer` must be bound in the IoC defaul is a [NoopTracer](https://github.com/open-telemetry/opentelemetry-js/blob/master/packages/opentelemetry-api/src/trace/NoopTracer.ts#L25) */ tracer: symbol; /** * Pass your custom propagator in order to get traceId from Camunda platform. * "TracerPropagator" must be bound in the IoC defaul is a NoopTracerPropagator */ tracer_propagator: symbol; };