Flare.Hosting.Aspire
0.3.1
dotnet add package Flare.Hosting.Aspire --version 0.3.1
NuGet\Install-Package Flare.Hosting.Aspire -Version 0.3.1
<PackageReference Include="Flare.Hosting.Aspire" Version="0.3.1" />
<PackageVersion Include="Flare.Hosting.Aspire" Version="0.3.1" />
<PackageReference Include="Flare.Hosting.Aspire" />
paket add Flare.Hosting.Aspire --version 0.3.1
#r "nuget: Flare.Hosting.Aspire, 0.3.1"
#:package Flare.Hosting.Aspire@0.3.1
#addin nuget:?package=Flare.Hosting.Aspire&version=0.3.1
#tool nuget:?package=Flare.Hosting.Aspire&version=0.3.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, and the dashboard SPA - pulling Flare's published Docker Hub
images (xracer007/flare-ingest, xracer007/flare-api, xracer007/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.2.0") - pass imageTag: "edge" to track Flare's
unreleased main branch instead. See the
getting-started docs
and Aspire hosting docs
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.4.6)
- Aspire.Hosting.ClickHouse (>= 13.4.6)
- Aspire.Hosting.Docker (>= 13.4.6)
- Aspire.Hosting.Kubernetes (>= 13.4.6-preview.1.26319.6)
- Aspire.Hosting.Redis (>= 13.4.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.