PPulse.Observability.AzFunctions 1.0.3

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

PPulse.Observability.AzFunctions

Policy Pulse observability integration for Azure Functions isolated worker (.NET 8+). Provides tracing, metrics, and structured logging export to the PPulse collector, including distributed trace context propagation from upstream callers.

Installation

dotnet add package PPulse.Observability.AzFunctions

Setup

Call AddPolicyPulse on IHostBuilder in Program.cs:

var host = new HostBuilder()
    .ConfigureFunctionsWorkerDefaults()
    .AddPolicyPulse(
        configureOptions: opts =>
        {
            opts.AppCode = "MyFunc";
            opts.AppName = "My Function App";
            opts.Environment = "Production";
            opts.CollectorBaseUri = new Uri("https://your-collector/");
            opts.TenantCode = "your-tenant-code";
            opts.ApiKey = "your-api-key";
        },
        configureBuilder: b => b
            .WithMetrics()
            .WithTracing().AddAzureFunctionsTracing()
            .WithILoggingBuilder()
    )
    .Build();

await host.RunAsync();

Propagating PPulse context from inbound HTTP triggers

To carry PPulse tenant/correlation/session metadata from an upstream caller into the function's trace, enrich the current activity from the request headers:

using PPulse.Observability.AzFunctions;

[Function("MyFunction")]
public async Task<HttpResponseData> Run([HttpTrigger(...)] HttpRequestData req)
{
    Activity.Current?.EnrichFromHeaders(new RequestHeaderReader(req));
    // ...
}

Logging: WithILoggingBuilder

For Azure Functions use .WithILoggingBuilder() (not .WithLogging(...)). The AddPolicyPulse extension wires the binder into the host automatically via IHostBuilder.ConfigureLogging, so you don't need to call LoggingBinder yourself.

What is instrumented

  • Azure Functions invocation spans (via AddAzureFunctionsTracing)
  • Outbound HTTP calls
  • SQL client operations
  • Runtime and process metrics
  • W3C traceparent/tracestate propagation — spans appear as children of the upstream caller's trace
  • First-chance exceptions captured and attached to the active trace (configure via opts.ConfigureException)
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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
1.0.3 74 8/18/2026