Qyl.OpenTelemetry.SemanticConventions.Nuke 3.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Qyl.OpenTelemetry.SemanticConventions.Nuke --version 3.0.1
                    
NuGet\Install-Package Qyl.OpenTelemetry.SemanticConventions.Nuke -Version 3.0.1
                    
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.Nuke" Version="3.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Qyl.OpenTelemetry.SemanticConventions.Nuke" Version="3.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Qyl.OpenTelemetry.SemanticConventions.Nuke" />
                    
Project file
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.Nuke --version 3.0.1
                    
#r "nuget: Qyl.OpenTelemetry.SemanticConventions.Nuke, 3.0.1"
                    
#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.Nuke@3.0.1
                    
#: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.Nuke&version=3.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Qyl.OpenTelemetry.SemanticConventions.Nuke&version=3.0.1
                    
Install as a Cake Tool

Qyl.OpenTelemetry.SemanticConventions

A consolidated build of four .NET packages that together cover the OpenTelemetry semantic-conventions lifecycle — from upstream registry pull, through Roslyn-time constant generation, into compile-time analyzers that police consumer code.

Package Role
Qyl.OpenTelemetry.SemanticConventions Stable attribute keys, pre-generated by Weaver against the OTel registry pinned via SemConvSchemaVersion in Version.props.
Qyl.OpenTelemetry.SemanticConventions.Incubating Incubating attribute keys, separate package so consumers opt in to instability.
Qyl.OpenTelemetry.SemanticConventions.SourceGeneration Roslyn incremental source generator. Emits typed Activity, Event, Meter, metric, and attribute projections from an embedded resolved-registry, driven by [SemanticConvention*] marker attributes at consumer build time.
Qyl.OpenTelemetry.SemanticConventions.Analyzers Roslyn diagnostic analyzers + code fixes. Flag deprecated semconv usage, missing required attributes, schema-url omission, etc. Docs: index · per-rule pages · migration catalog · SARIF v2.1.0 manifest · editorconfig profiles. Regenerate with ./build.sh GenerateDocs.

The shared Nuke build component (IUpstreamConventions, IDomainConventionsApi, LockstepPolicy) is consumed from ANcpLua.OpenTelemetry.Conventions.Nuke, shipped from O-ANcppLua/ANcpLua.OpenTelemetry.Conventions.Nuke. This repo participates as a .NET-side consumer.

Analyzer consumer knob

Switch the whole QYL00xx band in one csproj line instead of dropping editorconfig files:

<PropertyGroup>
  <OtelSemConvAnalysisMode>AllAsErrors</OtelSemConvAnalysisMode>
</PropertyGroup>

Values: Default (descriptor severities), AllAsErrors (strict CI), Disabled (silence the band). Unset = no editorconfig injection; consumer-side editorconfig stays authoritative. Knob ships via buildTransitive/Qyl.OpenTelemetry.SemanticConventions.Analyzers.props in the NuGet. The name is deliberately not bare <AnalysisMode> — that's owned by Microsoft.CodeAnalysis.NetAnalyzers.

Build loop

eng/build/ is a Nuke host. ./build.sh compiles every project in the solution (the Compile target). Other targets:

  • ./build.sh GenerateDocs — re-render docs/Qyl.OpenTelemetry.SemanticConventions.Analyzers.md.
  • ./build.sh CheckDocs — CI guard; fails if the committed markdown is stale.
  • ./build.sh AuditDocs — print analyzer-catalog statistics (no file I/O).
  • ./build.sh VerifyAttributesHash — hash the committed Attributes/**/*.g.cs against eng/semconv/attributes.lock.sha256; drift fails the build.
  • ./build.sh SeedAttributesHash — refresh the lock after an intentional regeneration.

Regeneration of Attributes/**/*.g.cs happens out-of-band: a human runs Weaver against the OTel registry pinned at SemConvSchemaVersion, commits the new .g.cs, then runs SeedAttributesHash.

Upstream path

If the upstream OpenTelemetry .NET source-generator effort (open-telemetry/opentelemetry-dotnet-contrib#4424) lands, the SourceGeneration, Analyzers, and Nuke packages ship as one cohesive unit. Type identities are preserved so the only consumer-side change is the PackageReference id.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
3.4.0 0 7/11/2026
3.3.0 79 7/8/2026
3.2.0 85 7/7/2026
3.1.0 156 6/26/2026
3.0.2 111 6/24/2026
3.0.1 112 5/29/2026