Skip to content

Enable Roslyn analysis - others - part 1#4741

Merged
Kielek merged 2 commits intoopen-telemetry:mainfrom
Kielek:analysis-others
Jan 12, 2026
Merged

Enable Roslyn analysis - others - part 1#4741
Kielek merged 2 commits intoopen-telemetry:mainfrom
Kielek:analysis-others

Conversation

@Kielek
Copy link
Member

@Kielek Kielek commented Jan 9, 2026

Why & What

Enable Roslyn analysis (<AnalysisLevel>latest-All</AnalysisLevel>) - others - part 1

Trying to move <AnalysisLevel>latest-All</AnalysisLevel> to Common.props.
In this PR - non controversial changes only.

Tests

CI

Checklist

  • [ ] CHANGELOG.md is updated.
  • [ ] Documentation is updated.
  • [ ] New features are covered by tests.

@Kielek Kielek requested a review from a team as a code owner January 9, 2026 11:42
{
Environment.SetEnvironmentVariable(ConfigurationKeys.Logs.LogsInstrumentationEnabled, null);
#if NET
foreach (var logInstrumentation in Enum.GetValues<LogInstrumentation>())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: to me it seems that a polyfill (of Enum.GetValues<TEnum>()) could be cleaner.

Copy link
Member Author

@Kielek Kielek Jan 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, but I do not found the good way to create the polyfils without bumping to LangVersion 14.0.
It cannot be done due to some builds.

extension keyword is new feature in .NET10 SDK

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@RassK RassK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one nit to clean code.

@Kielek Kielek merged commit b64cd15 into open-telemetry:main Jan 12, 2026
92 of 93 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments