Documentation
¶
Index ¶
- Variables
- func ClientProvider(params ProviderParameters) (client.Client, error)
- func ExtractLoggerMetadata(header *common.Header) (map[string]string, error)
- func InitializeTestWorkflowEnvironmentContextWithPrincipal(env *testsuite.TestWorkflowEnvironment, principal iam.ArmoryCloudPrincipal) error
- func NewLoggerContextPropagator() workflow.ContextPropagator
- func NewPrincipalContextPropagator() workflow.ContextPropagator
- func TrackFinishedActivity[T any](ctx workflow.Context, activityName string, ...) (T, error)
- func TrackFinishedWorkflow(ctx workflow.Context, workflowStatus string)
- func WithFields(ctx context.Context, fields ...LoggerField) context.Context
- func WithObservabilityParameters(ctx context.Context, entries ...string) context.Context
- func WithWorkflowFields(ctx workflow.Context, fields ...LoggerField) workflow.Context
- func WithWorkflowObservabilityParameters(ctx workflow.Context, entries ...string) workflow.Context
- type ActivityResult
- type Configuration
- type LoggerField
- type ProviderParameters
- type WorkerProvider
- type ZapAdapter
- func (log *ZapAdapter) Debug(msg string, keyvals ...interface{})
- func (log *ZapAdapter) Error(msg string, keyvals ...interface{})
- func (log *ZapAdapter) Info(msg string, keyvals ...interface{})
- func (log *ZapAdapter) Warn(msg string, keyvals ...interface{})
- func (log *ZapAdapter) With(keyvals ...interface{}) log.Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module( "temporal", fx.Provide(ClientProvider), fx.Provide(WorkerProviderProvider), )
Functions ¶
func ClientProvider ¶ added in v1.26.2
func ClientProvider(params ProviderParameters) (client.Client, error)
func ExtractLoggerMetadata ¶
func InitializeTestWorkflowEnvironmentContextWithPrincipal ¶ added in v1.42.0
func InitializeTestWorkflowEnvironmentContextWithPrincipal(env *testsuite.TestWorkflowEnvironment, principal iam.ArmoryCloudPrincipal) error
InitializeTestWorkflowEnvironmentContextWithPrincipal should only be used in tests.
func NewLoggerContextPropagator ¶
func NewLoggerContextPropagator() workflow.ContextPropagator
func NewPrincipalContextPropagator ¶ added in v1.42.0
func NewPrincipalContextPropagator() workflow.ContextPropagator
func TrackFinishedActivity ¶ added in v1.30.0
func TrackFinishedWorkflow ¶ added in v1.30.0
func WithFields ¶
func WithFields(ctx context.Context, fields ...LoggerField) context.Context
func WithObservabilityParameters ¶ added in v1.30.0
func WithWorkflowFields ¶
func WithWorkflowFields(ctx workflow.Context, fields ...LoggerField) workflow.Context
Types ¶
type ActivityResult ¶ added in v1.30.0
func NewActivityErrorResult ¶ added in v1.30.0
func NewActivityErrorResult[T any](err error, attempts int, status string) ActivityResult[T]
func NewActivitySuccessResult ¶ added in v1.30.0
func NewActivitySuccessResult[T any](result T, attempts int, status string) ActivityResult[T]
type Configuration ¶
type LoggerField ¶
type ProviderParameters ¶ added in v1.26.0
type ProviderParameters struct { fx.In Logger *zap.SugaredLogger Config Configuration MetricsService metrics.MetricsSvc `optional:"true"` Tracing opentelemetry.Configuration `optional:"true"` }
type WorkerProvider ¶ added in v1.26.2
type WorkerProvider struct {
// contains filtered or unexported fields
}
func WorkerProviderProvider ¶ added in v1.26.2
func WorkerProviderProvider(tracingConfig opentelemetry.Configuration) WorkerProvider
type ZapAdapter ¶
type ZapAdapter struct {
// contains filtered or unexported fields
}
func NewZapAdapter ¶
func NewZapAdapter(zapLogger *zap.Logger) *ZapAdapter
func (*ZapAdapter) Debug ¶
func (log *ZapAdapter) Debug(msg string, keyvals ...interface{})
func (*ZapAdapter) Error ¶
func (log *ZapAdapter) Error(msg string, keyvals ...interface{})
func (*ZapAdapter) Info ¶
func (log *ZapAdapter) Info(msg string, keyvals ...interface{})
func (*ZapAdapter) Warn ¶
func (log *ZapAdapter) Warn(msg string, keyvals ...interface{})
func (*ZapAdapter) With ¶
func (log *ZapAdapter) With(keyvals ...interface{}) log.Logger
Click to show internal directories.
Click to hide internal directories.