GCP Text Extraction Cloud Functions
Publicada el 2026-07-26
Descripción de la oferta
I need two concise Python scripts that I can drop straight into Google Cloud Functions. Their entire purpose is data processing on incoming text: each function should receive raw strings, run a lightweight text-extraction routine, and return the cleaned result in JSON. Key points Proposed Direction The recommended approach is to evolve the existing CloudFunctionLogger rather than replace the current implementation without transition. The existing logger already provides a basic abstraction and Cloud Logging integration. The new solution can build on this foundation by introducing standardized context and diagnostics. 8.1 Target Concept Existing CloudFunctionLogger → Enhanced Standardized Logging Wrapper → Centralized Diagnostic Logging 8.2 Candidate Standardized Diagnostic Context • Correlation ID • Component ID • Failure Hop • Error Code • Error Message • Stack Trace • PII-sanitized raw payload sample, where applicable • Retryable / Fatal classification • Actionable context 8.3 Recommended Implementation Sequence 10. Document and preserve the current logger behavior. 11. Define a standardized log and diagnostic schema. 12. Enhance CloudFunctionLogger to populate common context consistently. 13. Introduce correlation ID handling and propagation requirements. 14. Add standardized component and failure-hop information. 15. Standardize error and stack-trace capture. 16. Introduce PII sanitization for diagnostic payloads where required. 17. Define retryable versus fatal error classification. 18. Integrate the enhanced wrapper into the existing Cloud Function. If any additional configuration (e.g., IAM permissions or environment variables) is required, please document it clearly.
Skills
Fuente original: freelancer