You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
With a few small localized changes, this library will work with Apache OpenWhisk - an open source platform for serverless functions powering public clouds (IBM Cloud Functions, Adobe I/O, Nimbella) and many others offerings on-prem.
There are two main differences between OpenWhisk and AWS:
the "main" handler signature is main(event)in OpenWhisk vs main(event, context) in Lambda. The context is provided in environment variables in the former.
To keep changes minimal, I created a method to convert an OpenWhisk environment to an AWS-like context object (so get_fields remains agnostic to this change). I've confirmed the change is sufficient to allow OpenWhisk functions running on Nimbella to use the Lambda dashboards on SignalFx.
I can submit this patch as a pull request if desirable (do you have a contribution guide?), along with some documentation to show an OpenWhisk example as in this repo https://github.com/rabbah/sfx.
Here's the OpenWhisk lambda using the SignalFx decorator.
FYI for Splunk SignalFx GitHub approvers... - I (SignalFx Splunk Senior Sales Engineer) am working with Rodric and Nimbella on this and am creating OpenWhisk and Nimbella demos...
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
With a few small localized changes, this library will work with Apache OpenWhisk - an open source platform for serverless functions powering public clouds (IBM Cloud Functions, Adobe I/O, Nimbella) and many others offerings on-prem.
There are two main differences between OpenWhisk and AWS:
the "main" handler signature is
main(event)
in OpenWhisk vsmain(event, context)
in Lambda. Thecontext
is provided in environment variables in the former.the method
utilts.get_fields
is specific to AWS.lambda-python/signalfx_lambda/utils.py
Line 7 in a6bf942
To keep changes minimal, I created a method to convert an OpenWhisk environment to an AWS-like
context
object (soget_fields
remains agnostic to this change). I've confirmed the change is sufficient to allow OpenWhisk functions running on Nimbella to use the Lambda dashboards on SignalFx.I can submit this patch as a pull request if desirable (do you have a contribution guide?), along with some documentation to show an OpenWhisk example as in this repo https://github.com/rabbah/sfx.
Here's the OpenWhisk lambda using the SignalFx decorator.
https://github.com/rabbah/sfx/blob/11c4264661a2d6c80f51e7f41ff0938174ac1e83/packages/default/hello.py#L1-L8
The text was updated successfully, but these errors were encountered: