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
I might be missing something but I can't make LambdaWrapper to work on AWS Lambda:
package main
import (
"context""github.com/aws/aws-lambda-go/lambda""github.com/aws/aws-sdk-go-v2/config""github.com/rollbar/rollbar-go"
)
funcHandle(ctx context.Context) {
rollbar.Info("Starting ECR cleanup") // this gets loggedcfg, err:=config.LoadDefaultConfig(ctx)
iferr!=nil {
panic("configuration error: "+err.Error())
}
Cleanup(ctx) // any panics from that one will not be reported
}
funcmain() {
rollbar.SetToken("...")
lambda.Start(rollbar.LambdaWrapper(Handle))
}
The text was updated successfully, but these errors were encountered:
I might be missing something but I can't make LambdaWrapper to work on AWS Lambda:
The text was updated successfully, but these errors were encountered: