cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Calling app functions

christian_barth
Dynatrace Helper
Dynatrace Helper
Hi team,
is it allowed to call one app function from another app function? (As long as they are within the same app of course).
I didn't manage to do this via the relative URL.
Is this supposed to work?
Thanks
2 REPLIES 2

christian_barth
Dynatrace Helper
Dynatrace Helper

If you want to reuse logic across function, please have a look at following  article: https://developer.dynatrace.com/learn/reuse-code/

stefan_baumgart
Dynatrace Helper
Dynatrace Helper

Calling your own functions from your own functions is an anti-pattern: You trigger a new invocation with all the HTTP overhead plus you pay for invocations. Sharing code across functions is the right way to do it.

Featured Posts