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
<PackageReference Include="HoneyDrunk.Telemetry.Sink.PostHog" Version="0.4.0" />
<PackageVersion Include="HoneyDrunk.Telemetry.Sink.PostHog" Version="0.4.0" />
<PackageReference Include="HoneyDrunk.Telemetry.Sink.PostHog" />
paket add HoneyDrunk.Telemetry.Sink.PostHog --version 0.4.0
#r "nuget: HoneyDrunk.Telemetry.Sink.PostHog, 0.4.0"
#:package HoneyDrunk.Telemetry.Sink.PostHog@0.4.0
#addin nuget:?package=HoneyDrunk.Telemetry.Sink.PostHog&version=0.4.0
#tool nuget:?package=HoneyDrunk.Telemetry.Sink.PostHog&version=0.4.0
HoneyDrunk.Telemetry.Sink.PostHog
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
/batchendpoint - Configurable batch size and flush interval
- Event mapping from
TelemetryEventto PostHog capture format - Property filtering via approved/excluded key lists
- Retry with exponential backoff for transient failures
- HTTP 429 rate-limit handling with
Retry-Afterheader support
Related Projects
| Package | Description |
|---|---|
| HoneyDrunk.Telemetry.Abstractions | Sink interfaces |
| HoneyDrunk.Telemetry.Sink.Sentry | Sentry error tracking sink |
License
<p align="center"><strong>Built with 🍯 by HoneyDrunk Studios</strong></p> <p align="center"> <a href="https://github.com/HoneyDrunkStudios">GitHub</a> </p>
| Product | Versions 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. |
-
net10.0
- HoneyDrunk.Telemetry.Abstractions (>= 0.4.0)
- HoneyDrunk.Vault (>= 0.7.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.8)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Http (>= 10.0.8)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
v0.4.0: ADR-0011 D11 Sonar/SAST cleanup + dependency train refresh. See CHANGELOG.md for details.