iopipe / iopipe-python

Python agent for AWS Lambda metrics, tracing, profiling & analytics
https://www.iopipe.com
Apache License 2.0
79 stars 17 forks source link

Reorder Profiler Data Collection Hooks #334

Open kolanos opened 5 years ago

kolanos commented 5 years ago

Right now the profiler plugin performs profiler data collection and upload during the pre-report hook. This poses a problem for the trace plugin as it does data collection in the same hook. Instead, the profiler plugin should perform it's data collection during post-invocation hooks and only append profiler data to the report in the pre-report hook. This will allow the trace plugin to consistently report profiler plugin performance.