Need to log the granule name during ingest to enable dashboard metrics.
Overview of work done
Changed logging message in load_granule lambda handler to log the granule name. New message is eg:
Begin loading data from granule: SWOT_L2_HR_RiverSP_Reach_013_151_AR_20240401T235352_20240401T235403_PIC0_01.zip
Overview of verification done
Changes only to logging, no new unit tests.
Overview of integration done
Deployed to SIT, verified load_granule lambda logs every granule name no matter how it's invoked. Confirmed CNM lambda and bulk load data lambdas also log granule name, with message eg:
Invoking granule load lambda with event json { "body": { "granule_path": "https://d16xwb4cnl582v.cloudfront.net/podaac-swot-sit-cumulus-protected/SWOT_L2_HR_RiverSP_2.0/SWOT_L2_HR_RiverSP_Reach_006_204_SI_20231109T193227_20231109T193238_PGC0_01.zip", "obscure_data": "False", "table_name": "hydrocron-swot-reach-table", "load_benchmarking_data": "False" } }
Github Issue: #124 Log granule name on ingest
Description
Need to log the granule name during ingest to enable dashboard metrics.
Overview of work done
Changed logging message in load_granule lambda handler to log the granule name. New message is eg:
Begin loading data from granule: SWOT_L2_HR_RiverSP_Reach_013_151_AR_20240401T235352_20240401T235403_PIC0_01.zip
Overview of verification done
Changes only to logging, no new unit tests.
Overview of integration done
Deployed to SIT, verified load_granule lambda logs every granule name no matter how it's invoked. Confirmed CNM lambda and bulk load data lambdas also log granule name, with message eg:
Invoking granule load lambda with event json { "body": { "granule_path": "https://d16xwb4cnl582v.cloudfront.net/podaac-swot-sit-cumulus-protected/SWOT_L2_HR_RiverSP_2.0/SWOT_L2_HR_RiverSP_Reach_006_204_SI_20231109T193227_20231109T193238_PGC0_01.zip", "obscure_data": "False", "table_name": "hydrocron-swot-reach-table", "load_benchmarking_data": "False" } }
PR checklist:
See Pull Request Review Checklist for pointers on reviewing this pull request