44
config *Config,
45
namespaceRegistry namespace.Registry,
47
>
return &componentOnlyLibrary{
48
>
config: config,
49
>
namespaceRegistry: namespaceRegistry,
50
>
}
51
>
}
52
53
>
func (l *componentOnlyLibrary) Name() string {
library.go
54
>
return libraryName
55
>
}
56
57
>
func (l *componentOnlyLibrary) Components() []*chasm.RegistrableComponent {
library.go
58
>
return []*chasm.RegistrableComponent{
59
>
chasm.NewRegistrableComponent[*Activity](
60
>
componentName,
61
>
chasm.WithSearchAttributes(
62
>
TypeSearchAttribute,
63
>
StatusSearchAttribute,
64
>
chasm.SearchAttributeTaskQueue,
65
>
chasm.SearchAttributeExecutionTime,
66
>
),
67
>
chasm.WithBusinessIDAlias("ActivityId"),
68
>
chasm.WithContextValues(map[any]any{
69
>
ctxKeyActivityContext: &activityContext{
70
>
config: l.config,
71
>
namespaceRegistry: l.namespaceRegistry,
72
>
},
73
>
}),
74
>
),
75
>
}
76
>
}
77
78
// NewNilLibrary creates a Library with all nil handlers. Useful for