Qyl.Telemetry.Hosting 24.0.1

dotnet add package Qyl.Telemetry.Hosting --version 24.0.1
                    
NuGet\Install-Package Qyl.Telemetry.Hosting -Version 24.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.Telemetry.Hosting" Version="24.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Qyl.Telemetry.Hosting" Version="24.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Qyl.Telemetry.Hosting" />
                    
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.Telemetry.Hosting --version 24.0.1
                    
#r "nuget: Qyl.Telemetry.Hosting, 24.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.Telemetry.Hosting@24.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.Telemetry.Hosting&version=24.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Qyl.Telemetry.Hosting&version=24.0.1
                    
Install as a Cake Tool

Qyl.Telemetry.Hosting

One-line telemetry for a .NET 10 application, NativeAOT included. builder.AddQyl() wires the OpenTelemetry SDK, activates qyl's automatic instrumentation, registers the activity sources and meters, and exports traces, metrics and logs over OTLP.

dotnet add package Qyl.Telemetry.Hosting
using Qyl;

builder.AddQyl();

That is the whole integration. There is no per-library enable step: every supported source is on unless its OTEL_DOTNET_AUTO_<ID>_INSTRUMENTATION_ENABLED toggle turns it off.

Where the telemetry goes

AddQyl() exports to the first of these that is set:

  1. OTEL_EXPORTER_OTLP_ENDPOINT — the standard variable, which also redirects every other OTLP exporter in the process.
  2. QYL_ENDPOINT — a collector for the qyl exporters alone.
  3. A qyl collector discovered on localhost or the host qyl at 4318/4317, which is what qyl up from the qyl dotnet tool provides.

To see spans without any collector, add OpenTelemetry's console exporter through the tracing hook:

dotnet add package OpenTelemetry.Exporter.Console
builder.AddQyl(o => o.ConfigureTracing = t => t.AddConsoleExporter());

Options

AddQyl(o => ...) takes a QylTelemetryOptions. Every option has a zero-config default.

Option Default Effect
ServiceName OTEL_SERVICE_NAME, else the host application name The service.name resource attribute.
ServiceVersion unset The service.version resource attribute; leave it unset to omit the attribute.
ResourceAttributes empty Extra attributes merged onto the resource, for facts about the process rather than one span.
ConfigureTracing unset A hook for tracing setup the typed options do not cover. It runs after the qyl sources and processors and before the OTLP exporter.
CollectorEndpoint unset An explicit collector endpoint, ahead of the order above.
EnableCollectorDiscovery true Probe localhost and the host qyl for a collector when no endpoint is set.
RequireConfiguredEndpoint false Export only when an endpoint is set or discovered, instead of falling back to the exporter's localhost default. A process that is itself a telemetry destination, such as a collector, sets it to true.
EnableLogExport true Export application logs over OTLP.
EnableMetricsExport true Register and export the qyl meter inventory and the GenAI meters.
EnableSessionTagInheritance true Copy session.id from the nearest in-process ancestor span onto spans that lack it. It sets a span tag only; nothing goes on the wire to the next process.
AdditionalSources empty More ActivitySource names to subscribe.
AdditionalMeters empty More Meter names to subscribe.

What it pulls in

This package depends on Qyl.Telemetry.AutoInstrumentation (the instrumentation runtime) and Qyl.Telemetry.AutoInstrumentation.Hosting (the listener bootstrap). An application that wires the OpenTelemetry SDK itself should reference Qyl.Telemetry.AutoInstrumentation.Hosting directly and register the Qyl.Telemetry.AutoInstrumentation source by hand, instead of this package.

Publishing with -p:PublishAot=true produces no trim, AOT or analyzer warning from this package.

More

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
24.0.1 0 10/11/2026
24.0.0 314 10/11/2026
23.1.0 352 10/11/2026
23.0.0 124 10/10/2026
22.0.0 638 10/10/2026
21.1.0 2,079 9/11/2026
21.0.2 111 9/11/2026
21.0.1 259 9/9/2026
20.0.0 109 9/8/2026
17.0.0 121 9/8/2026
16.0.0 111 9/7/2026
15.0.0 110 9/7/2026
14.1.0 385 9/7/2026
14.0.1 233 9/7/2026
12.0.0 107 9/4/2026
11.0.0 223 9/3/2026
10.1.0 204 9/2/2026
10.0.0 181 9/2/2026
9.1.0 1,178 8/20/2026
9.0.1 1,031 7/27/2026
Loading failed