Azure / Azure/azure-functions-host

Activity.Current fixes

Open
#5,874 7 comments 0 reactions 0 assignees View on GitHub
3.x design
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

There are some scenarios where directly referencing `System.Diagnostics.DiagnosticSource` can break usage of `Activity.Current`:
- referencing (even transitively) `DiagnosticSource` and deploying a `function.deps.json` file -- which happens by default now.
- directly referencing a version of `DiagnosticSource` that is ahead of the host.

We need tests around these and to investigate a fix that can make this hard to break in the future.

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by reproducing the two Activity.Current failure scenarios described in the issue, then add regression coverage for each and investigate a durable host-side fix. Done means both deployment/version cases are covered and Activity.Current remains usable without breaking existing scenarios.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
backend, cloud
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.