Flare.Hosting.Aspire
0.5.1
CommunityToolkit.Aspire.Hosting.Flare
Additional DetailsReplaced by CommunityToolkit.Aspire.Hosting.Flare (requires Aspire 17). Stay on 0.5.1 only if you're on Aspire 13.x, or need cold storage, Kubernetes publish customization or the Resources page, which the toolkit package doesn't have yet.
dotnet add package Flare.Hosting.Aspire --version 0.5.1
NuGet\Install-Package Flare.Hosting.Aspire -Version 0.5.1
<PackageReference Include="Flare.Hosting.Aspire" Version="0.5.1" />
<PackageVersion Include="Flare.Hosting.Aspire" Version="0.5.1" />
<PackageReference Include="Flare.Hosting.Aspire" />
paket add Flare.Hosting.Aspire --version 0.5.1
#r "nuget: Flare.Hosting.Aspire, 0.5.1"
#:package Flare.Hosting.Aspire@0.5.1
#addin nuget:?package=Flare.Hosting.Aspire&version=0.5.1
#tool nuget:?package=Flare.Hosting.Aspire&version=0.5.1
Flare.Hosting.Aspire
Package ID
Flare.Hosting.Aspire, notAspire.Hosting.Flare- that prefix is reserved on nuget.org for Microsoft's own official integrations. Same project (src/Aspire.Hosting.Flare), samebuilder.AddFlare(...)API - only the published package name differs.
.NET Aspire hosting integration for Flare - a self-hosted, OpenTelemetry-native log dashboard for .NET developers.
Adds the whole Flare stack to your own AppHost as a dev-time resource:
var builder = DistributedApplication.CreateBuilder(args);
var flare = builder.AddFlare("flare");
builder.AddProject<Projects.MyApi>("myapi")
.WithReference(flare) // injects ConnectionStrings__flare -> Flare.Ingest's OTLP/gRPC endpoint
.WaitForFlare(flare);
builder.Build().Run();
AddFlare wires up ClickHouse (log storage), Redis (the batched-insert buffer), the OTLP
ingest receiver, the query API, the alert-rule evaluation worker, and the dashboard SPA -
pulling Flare's published Docker Hub images (apardev/flare-ingest, apardev/flare-api,
apardev/flare-alert-worker, apardev/flare-dashboard) rather than building from source,
the same way docker-compose.yml
in Flare's own repo does.
Pair .WithReference(flare) above with the Flare.Aspire
client package's builder.AddFlareOtlpExporter("flare") in the consuming project - it reads
the injected ConnectionStrings__flare and registers an OTLP log exporter pointed at it. Or
skip the client package and call WithOtlpEndpoint(flare) instead of WithReference(flare)
here, which sets OTEL_EXPORTER_OTLP_ENDPOINT directly on the consuming resource (useHttp: true
for the OTLP/HTTP endpoint, :4318, instead of gRPC) - for wiring your own OpenTelemetry SDK
call by hand.
Status
Pre-alpha. imageTag defaults to the latest stable Flare release this package version
was tested against (currently "0.6.0") - pass imageTag: "edge" to track Flare's
unreleased main branch instead. See the
getting-started tutorial
and Aspire hosting how-to
for the full API and a snippet per logger.
| 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
- Aspire.Hosting (>= 13.6.0)
- Aspire.Hosting.ClickHouse (>= 13.5.3)
- Aspire.Hosting.Docker (>= 13.6.0)
- Aspire.Hosting.Kubernetes (>= 13.6.0-preview.1.26479.8)
- Aspire.Hosting.Redis (>= 13.6.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.