File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
codeguru_profiler_agent/sdk_reporter Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,8 @@ def refresh_configuration(self):
82
82
if self .should_auto_create_profiling_group ():
83
83
logger .info (
84
84
"Profiling group not found. Will try to create a profiling group "
85
- "with name = {} and compute platform = {} and retry calling configure agent after 5 minutes"
85
+ "with name = {} and compute platform = {} and retry calling configure agent after 5 minutes. "
86
+ "Make sure that Lambda's execution role has AmazonCodeGuruProfilerAgentAccess policy added."
86
87
.format (self .profiling_group_name , 'AWSLambda' ))
87
88
self .create_profiling_group ()
88
89
else :
@@ -118,7 +119,9 @@ def report(self, profile):
118
119
self .__class__ .is_create_pg_called_during_submit_profile = True
119
120
logger .info (
120
121
"Profiling group not found. Will try to create a profiling group "
121
- "with name = {} and compute platform = {}" .format (self .profiling_group_name , 'AWSLambda' ))
122
+ "with name = {} and compute platform = {} and retry reporting during next invocation. "
123
+ "Make sure that Lambda's execution role has AmazonCodeGuruProfilerAgentAccess policy added."
124
+ .format (self .profiling_group_name , 'AWSLambda' ))
122
125
self .create_profiling_group ()
123
126
return False
124
127
except Exception as e :
You can’t perform that action at this time.
0 commit comments