mirror of
https://github.com/davidkaya/aryx.git
synced 2026-07-29 16:08:46 +02:00
Add OTLP export wiring for the sidecar and dev scripts to launch the standalone Aspire Dashboard during development. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
14 lines
406 B
C#
14 lines
406 B
C#
using Aryx.AgentHost.Services;
|
|
using OpenTelemetry.Trace;
|
|
|
|
if (!args.Contains("--stdio", StringComparer.Ordinal))
|
|
{
|
|
Console.Error.WriteLine("Aryx.AgentHost expects the --stdio flag.");
|
|
return;
|
|
}
|
|
|
|
using TracerProvider? tracerProvider = OpenTelemetrySetup.CreateTracerProviderFromEnvironment();
|
|
|
|
SidecarProtocolHost host = new();
|
|
await host.RunAsync(Console.In, Console.Out, CancellationToken.None);
|