Skip to content

Enable Roslyn analysis - main project - part III#4704

Merged
Kielek merged 13 commits intoopen-telemetry:mainfrom
Kielek:analysis-mainproject
Dec 12, 2025
Merged

Enable Roslyn analysis - main project - part III#4704
Kielek merged 13 commits intoopen-telemetry:mainfrom
Kielek:analysis-mainproject

Conversation

@Kielek
Copy link
Member

@Kielek Kielek commented Dec 11, 2025

Why & What

Enable Roslyn analysis (<AnalysisLevel>latest-All</AnalysisLevel>) - main project - part III.
This PR is big enough for review. There will be 1+ related to this stuff.

Worth to consider reviewing commit by commit.

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 December 11, 2025 14:03
Copy link
Member

@nrcventura nrcventura left a comment

Choose a reason for hiding this comment

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

These changes look good, but we should think about if there is a better way to handle the exception analysis.

We have a lot of areas where we need to disable CA1031 (the general exception handling), and I'm wondering if there are any cases in this project where we should just focus on specific exception types. Because this project should not cause harm to the application, I feel like more often than not, we need to catch all exceptions, and not just specific ones. So maybe we should suppress that analysis at the project level.

@Kielek Kielek force-pushed the analysis-mainproject branch from b7aa13b to a925d81 Compare December 12, 2025 07:10
@Kielek
Copy link
Member Author

Kielek commented Dec 12, 2025

@nrcventura, CA1031 muted on the project level.

@Kielek Kielek merged commit bae2663 into open-telemetry:main Dec 12, 2025
51 checks passed
@Kielek Kielek deleted the analysis-mainproject branch December 12, 2025 07:49
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