Soenneker.ApplicationInsights.Processor.SignalR 4.0.403

Prefix Reserved
dotnet add package Soenneker.ApplicationInsights.Processor.SignalR --version 4.0.403
                    
NuGet\Install-Package Soenneker.ApplicationInsights.Processor.SignalR -Version 4.0.403
                    
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.403" />
                    
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.403" />
                    
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.403
                    
#r "nuget: Soenneker.ApplicationInsights.Processor.SignalR, 4.0.403"
                    
#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.403
                    
#: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.403
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.ApplicationInsights.Processor.SignalR&version=4.0.403
                    
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.403 105 8/29/2026
4.0.402 47 8/29/2026
4.0.401 76 8/29/2026
4.0.400 716 7/27/2026
4.0.399 95 7/27/2026
4.0.398 310 7/16/2026
4.0.397 924 6/18/2026
4.0.396 597 6/5/2026
4.0.395 114 6/5/2026
4.0.394 718 5/2/2026
4.0.393 279 4/22/2026
4.0.391 354 3/12/2026
4.0.390 124 3/12/2026
4.0.389 151 3/12/2026
4.0.388 154 3/12/2026
4.0.387 203 3/10/2026
4.0.386 201 3/9/2026
4.0.385 131 3/9/2026
4.0.384 172 3/9/2026
4.0.383 407 3/4/2026
Loading failed

Improve README documentation