Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions codeguru_profiler_agent/sdk_reporter/sdk_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def refresh_configuration(self):
if self.should_auto_create_profiling_group():
logger.info(
"Profiling group not found. Will try to create a profiling group "
"with name = {} and compute platform = {} and retry calling configure agent after 5 minutes"
"with name = {} and compute platform = {} and retry calling configure agent after 5 minutes. "
"Make sure that Lambda's execution role has AmazonCodeGuruProfilerAgentAccess policy added."
.format(self.profiling_group_name, 'AWSLambda'))
self.create_profiling_group()
else:
Expand Down Expand Up @@ -118,7 +119,9 @@ def report(self, profile):
self.__class__.is_create_pg_called_during_submit_profile = True
logger.info(
"Profiling group not found. Will try to create a profiling group "
"with name = {} and compute platform = {}".format(self.profiling_group_name, 'AWSLambda'))
"with name = {} and compute platform = {} and retry reporting during next invocation. "
"Make sure that Lambda's execution role has AmazonCodeGuruProfilerAgentAccess policy added."
.format(self.profiling_group_name, 'AWSLambda'))
self.create_profiling_group()
return False
except Exception as e:
Expand Down