Azure / Azure/azure-functions-host

Use scopes to direct logs to correct file

Open
#4,689 22 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 10h
Merged PRs (30d)
36

Description

Today the FileLogger (what you see in the portal when invoking functions) figures out the correct file to write to based on the `Function.{FunctionName}.User` standard category that we use. However, we should be able to look at the scope as well to see if there's a function name. If so, write there.

Contributor guide

Open the contributing guide

Research direction

Start by locating FileLogger and tracing how the Function.{FunctionName}.User category selects the output file. Then inspect how logging scopes expose a function name and verify that scoped function names direct logs to the correct file while the existing category behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
observability-sre
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.