HoneyDrunk.Telemetry.Sink.PostHog 0.4.0

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

HoneyDrunk.Telemetry.Sink.PostHog

License: MIT .NET 10

PostHog analytics sink for HoneyDrunk telemetry. Captures product analytics events with batching, retry logic, and rate-limit handling.

Installation

dotnet add package HoneyDrunk.Telemetry.Sink.PostHog

Configuration

{
  "HoneyDrunk": {
    "PostHog": {
      "ApiKeySecretName": "PostHog--ApiKey",
      "Host": "https://app.posthog.com",
      "BatchSize": 100,
      "FlushIntervalMs": 30000,
      "MaxRetries": 3
    }
  }
}

The API key value is resolved from ISecretStore on flush so Event Grid cache invalidation and secret rotation take effect without a process restart.

Features

  • HTTP-based batch event capture via /batch endpoint
  • Configurable batch size and flush interval
  • Event mapping from TelemetryEvent to PostHog capture format
  • Property filtering via approved/excluded key lists
  • Retry with exponential backoff for transient failures
  • HTTP 429 rate-limit handling with Retry-After header support
Package Description
HoneyDrunk.Telemetry.Abstractions Sink interfaces
HoneyDrunk.Telemetry.Sink.Sentry Sentry error tracking sink

License

MIT


<p align="center"><strong>Built with 🍯 by HoneyDrunk Studios</strong></p> <p align="center"> <a href="https://github.com/HoneyDrunkStudios">GitHub</a> </p>

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
0.4.0 112 5/28/2026
0.3.0 97 5/18/2026
0.2.0 105 5/4/2026
0.1.0 109 4/26/2026

v0.4.0: ADR-0011 D11 Sonar/SAST cleanup + dependency train refresh. See CHANGELOG.md for details.