Qyl.OpenTelemetry.SemanticConventions.Analyzers
1.11.0
dotnet add package Qyl.OpenTelemetry.SemanticConventions.Analyzers --version 1.11.0
NuGet\Install-Package Qyl.OpenTelemetry.SemanticConventions.Analyzers -Version 1.11.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Qyl.OpenTelemetry.SemanticConventions.Analyzers" Version="1.11.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Qyl.OpenTelemetry.SemanticConventions.Analyzers" Version="1.11.0" />
<PackageReference Include="Qyl.OpenTelemetry.SemanticConventions.Analyzers"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Qyl.OpenTelemetry.SemanticConventions.Analyzers --version 1.11.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Qyl.OpenTelemetry.SemanticConventions.Analyzers, 1.11.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Qyl.OpenTelemetry.SemanticConventions.Analyzers@1.11.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Qyl.OpenTelemetry.SemanticConventions.Analyzers&version=1.11.0
#tool nuget:?package=Qyl.OpenTelemetry.SemanticConventions.Analyzers&version=1.11.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Qyl.OpenTelemetry.SemanticConventions.Analyzers
Roslyn analyzers and code fixes that enforce OpenTelemetry semantic conventions v1.40.0 in C# code.
Diagnostics
| Range | Kind | What it flags |
|---|---|---|
QYLSC0001–QYLSC0245 |
Warning | Each deprecated OTel attribute / metric / event / entity / enum member gets its own rule id so severity can be tuned per entry via .editorconfig. |
QYLSC002 |
Info | Magic-string attribute id — suggests replacing with a typed constant. |
QYLSC003A |
Warning | String literal that looks OTel-namespaced but isn't in the registry; offers a Levenshtein suggestion. |
QYLSC003B |
Warning | Unregistered qyl.* attribute — must be registered under eng/semconv/qyl/model. |
Code fixes
The deprecated-attribute fixer dispatches on replacement_mode from the
upstream OTel registry:
- Direct / FieldMapping / Integrate — 1:1 literal replacement with the registered target.
- Alternative — one code action per candidate replacement.
- Removed — strips the enclosing statement with a TODO note.
- Composite / Conditional / Contextual / Example / NoteOnly — no auto-fix; diagnostic fires and the engineer resolves manually.
Tuning severity
# .editorconfig
[*.cs]
dotnet_diagnostic.QYLSC0001.severity = error # fail the build on android.state
dotnet_diagnostic.QYLSC0047.severity = none # tolerate db.jdbc.driver_classname usage
Regenerating
python3 eng/semconv/tools/gen-deprecated-diagnostics/gen.py \
--yaml eng/semconv/deprecated-lookup/master-programmatic.yaml \
--out packages/Qyl.OpenTelemetry.SemanticConventions.Analyzers/Model/DeprecatedDiagnostics.g.cs
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.11.0 | 96 | 4/24/2026 |