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
<PackageReference Include="PPulse.Observability.AzFunctions" Version="1.0.3" />
<PackageVersion Include="PPulse.Observability.AzFunctions" Version="1.0.3" />
<PackageReference Include="PPulse.Observability.AzFunctions" />
paket add PPulse.Observability.AzFunctions --version 1.0.3
#r "nuget: PPulse.Observability.AzFunctions, 1.0.3"
#:package PPulse.Observability.AzFunctions@1.0.3
#addin nuget:?package=PPulse.Observability.AzFunctions&version=1.0.3
#tool nuget:?package=PPulse.Observability.AzFunctions&version=1.0.3
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/tracestatepropagation — 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 | Versions 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. |
-
net8.0
- Microsoft.Azure.Functions.Worker (>= 2.0.0)
- PPulse.Observability.Core (>= 1.0.3)
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 |