dotnet / dotnet/extensions

Logging generator in Microsoft.Extensions.Telemetry.Abstractions should have a code fixer that matches the platform's logging generator.

Open
#4,761 1 comment 0 reactions 1 assignee Claimed by @geeknoid View on GitHub
area-telemetry enhancement
Dominant language
C#
Stars
3.2k
Forks
894
Avg merge
1d 12h
Merged PRs (30d)
23

Description

As explained in the [package's README](https://github.com/dotnet/extensions/tree/main/src/Libraries/Microsoft.Extensions.Telemetry.Abstractions#microsoftextensionstelemetryabstractions), Microsoft.Extensions.Telemetry.Abstractions includes a logging generator that replaces the one from Microsoft.Extensions.Logging.Abstractions as it supersedes it by adding more features to it. One thing that was noticed, is that the platform one contained code fixers and analyzers that would help you to detect when the generator is used, as well as a fixer that would help make the changes for you, but the new Microsoft.Extensions.Telemetry.Abstractions package doesn't have those. This means that we are regressing this experience for users that opt-in to our extended generator capabilities.

We should make sure that the features from the package on this repository, are a full superset of the features in the platform so as to not regress any scenarios. This issue is tracking the work to add those analyzers and features into the Microsoft.Extensions.Telemetry.Abstractions package.

cc: @geeknoid

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.