Closed wentevill closed 2 years ago
/area custom plugins
Register a custom plugin, the plugin can be executed successfully when used.
Custom plugins are ignored.
https://github.com/OpenFunction/functions-framework-go/blob/main/framework/framework.go#L101-L110 Custom plugins are injected into pluginMap, only TracingProviderSkywalking, TracingProviderOpentelemetry will be injected into PrePlugins and PostPlugins. https://github.com/OpenFunction/functions-framework-go/blob/main/context/context.go#L770-L789
pluginMap
TracingProviderSkywalking
TracingProviderOpentelemetry
PrePlugins
PostPlugins
resulting in custom plugins cannot be successfully obtained in the context. https://github.com/OpenFunction/functions-framework-go/blob/main/framework/framework.go#L112-126
Can you paste the configuration of the Function? also you may refer to this sample: https://github.com/OpenFunction/samples/blob/main/functions/async/bindings/cron-input-kafka-output/cron-input-kafka-output.yaml
In what area(s)?
/area custom plugins
Expected Behavior
Register a custom plugin, the plugin can be executed successfully when used.
Actual Behavior
Custom plugins are ignored.
https://github.com/OpenFunction/functions-framework-go/blob/main/framework/framework.go#L101-L110 Custom plugins are injected into
pluginMap
, onlyTracingProviderSkywalking
,TracingProviderOpentelemetry
will be injected intoPrePlugins
andPostPlugins
. https://github.com/OpenFunction/functions-framework-go/blob/main/context/context.go#L770-L789resulting in custom plugins cannot be successfully obtained in the context. https://github.com/OpenFunction/functions-framework-go/blob/main/framework/framework.go#L112-126