Azure / Azure/azure-functions-dotnet-worker

Adopt high-performance logging (logger message source gen)

Open
#1,019 0 comments 1 reaction 0 assignees View on GitHub
team-issue
Dominant language
C#
Stars
466
Forks
215
Avg merge
3d 10h
Merged PRs (30d)
7

Description

Log statement formatting comes with a cost. We should adopt [logger message source gen](https://docs.microsoft.com/en-us/dotnet/core/extensions/logger-message-generator) to offset this cost.

The summary of it is we will pay that cost only once for building the template for a given log instead of each individual log call.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked logger message source generator documentation, then inspect the worker's existing log statements to determine the scope of adoption. Done means the applicable logging paths use source-generated messages and preserve current log output and behavior; add or update coverage where the affected logging behavior is tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
observability-sre, performance
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.