diff --git a/internal/internal_worker.go b/internal/internal_worker.go index 50abde3e8..61af46002 100644 --- a/internal/internal_worker.go +++ b/internal/internal_worker.go @@ -2086,6 +2086,9 @@ func getFunctionName(i interface{}) (name string, isMethod bool) { // var a *Activities // ExecuteActivity(ctx, a.Foo) // will call this function which is going to return "Foo" + if s, ok := i.(fmt.Stringer); ok { + return s.String(), false + } return strings.TrimSuffix(shortName, "-fm"), isMethod }