GCTC-NTGC / gc-digital-talent

GC Digital Talent is the new recruitment platform for digital and tech jobs in the Government of Canada. // Talents numériques du GC est la nouvelle plateforme de recrutement pour les emplois numériques et technologiques au gouvernement du Canada.
https://talent.canada.ca
GNU Affero General Public License v3.0
22 stars 9 forks source link

✨ Stop using Docker logging in Azure #11289

Open petertgiles opened 2 months ago

petertgiles commented 2 months ago

✨ Feature

We know that we're losing the log output from our laravel worker jobs in Azure due to using Docker stdout logging. Let's stop using the Docker logging and instead send our logging directly to Application Insights.

🕵️ Details

There are two ways I can think of to do this:

  1. Install the Azure Monitor into our app services to read our log files and send the data back to Auzre. https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-overview https://learn.microsoft.com/en-us/azure/azure-monitor/agents/agent-linux

  2. Integrate a Azure compatible logger into Laravel https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-overview https://opentelemetry.io/docs/languages/php/ We could possibly get richer logging this way, by moving beyond a plain text stream. Possibly using different logging levels, adding context, or even multiple logging tables.

✅ Acceptance Criteria

🛑 Blockers

### Blocked By
tristan-orourke commented 2 weeks ago

@petertgiles reccomends starting with approach #2