Soenneker.ApplicationInsights.Processor.SignalR 4.0.404

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

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.ApplicationInsights.Processor.SignalR

An OpenTelemetry ASP.NET Core instrumentation filter that excludes requests under /hubs from exported request traces.

Use it when SignalR connection, transport, and negotiate requests create unwanted Application Insights volume and every application hub is mapped beneath /hubs.

Installation

dotnet add package Soenneker.ApplicationInsights.Processor.SignalR

Registration

using Azure.Monitor.OpenTelemetry.AspNetCore;
using Soenneker.ApplicationInsights.Processor.SignalR.Registrars;

builder.Services
       .AddOpenTelemetry()
       .UseAzureMonitor();

builder.Services.AddSignalRHubTelemetryProcessor();

The registrar adds SignalRTelemetryProcessor as an IConfigureOptions<AspNetCoreTraceInstrumentationOptions> implementation. It does not register a separately resolved processor service.

What is filtered

The filter performs a case-insensitive PathString.StartsWithSegments("/hubs") check.

Filtered examples:

/hubs
/hubs/chat
/hubs/chat/negotiate
/HUBS/notifications

Requests outside that path segment continue through ASP.NET Core instrumentation:

/api/hubs
/hub
/health

The filter prevents collection of the matching ASP.NET Core server activities. It does not merely hide them in the Azure portal, and it does not filter application logs or custom telemetry emitted separately.

Map hubs consistently

The package assumes hubs are rooted at /hubs:

app.MapHub<ChatHub>("/hubs/chat");
app.MapHub<NotificationsHub>("/hubs/notifications");

A hub mapped elsewhere is not filtered. Conversely, every non-SignalR endpoint under /hubs is also filtered.

Composition caveat

SignalRTelemetryProcessor assigns AspNetCoreTraceInstrumentationOptions.Filter. It does not combine its predicate with a filter already configured by the application or another package. Whichever options configurator assigns the property last determines the effective filter.

When the application needs several conditions, prefer one application-owned predicate that composes them explicitly:

builder.Services.Configure<AspNetCoreTraceInstrumentationOptions>(options =>
{
    options.Filter = context =>
        !context.Request.Path.StartsWithSegments("/hubs") &&
        !context.Request.Path.StartsWithSegments("/health");
});

Do not register the package's configurator in addition to a composed application filter unless the resulting options order is intentional.

API

AddSignalRHubTelemetryProcessor(IServiceCollection) registers the ASP.NET Core trace-options configurator and returns the same service collection for chaining.

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 (1)

Showing the top 1 NuGet packages that depend on Soenneker.ApplicationInsights.Processor.SignalR:

Package Downloads
Soenneker.Extensions.ServiceCollection.ApplicationInsights

A collection of helpful IServiceCollection extension methods involving Application Insights

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.405 0 9/15/2026
4.0.404 119 9/12/2026
4.0.403 398 8/29/2026
4.0.402 94 8/29/2026
4.0.401 152 8/29/2026
4.0.400 763 7/27/2026
4.0.399 104 7/27/2026
4.0.398 315 7/16/2026
4.0.397 934 6/18/2026
4.0.396 601 6/5/2026
4.0.395 121 6/5/2026
4.0.394 724 5/2/2026
4.0.393 284 4/22/2026
4.0.391 359 3/12/2026
4.0.390 128 3/12/2026
4.0.389 155 3/12/2026
4.0.388 158 3/12/2026
4.0.387 208 3/10/2026
4.0.386 205 3/9/2026
4.0.385 137 3/9/2026
Loading failed

Use NuGet trusted publishing in publishing workflows