This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| goaws () { | |
| PROFILE=$1 | |
| export AWS_REGION='us-east-1' | |
| export AWS_DEFAULT_PROFILE=$PROFILE | |
| # this will override the profile used by some tools so let's not set that | |
| # even though it's standard. | |
| #export AWS_PROFILE=$PROFILE | |
| export _SLS_STAGE=$(echo $AWS_DEFAULT_PROFILE | cut -s -d '-' -f 2) | |
| export SLS_STAGE=${_SLS_STAGE:-prime} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| from thundra.thundra_agent import Thundra | |
| from thundra.plugins.trace.traceable import Traceable | |
| THUNDRA_API_KEY = os.environ.get('THUNDRA_API_KEY', '') | |
| thundra = Thundra(api_key=THUNDRA_API_KEY) | |
| @Traceable(trace_args=True, trace_return_value=True) | |
| def _action_a(): |
OlderNewer