Home / Docs / Telemetry

Telemetry

Telemetry

FabrCore includes OpenTelemetry instrumentation across host grains, SDK agent execution, WebSocket ingress, and HTTP API activity.

OpenTelemetry Setup

builder.Services.AddOpenTelemetry()
    .WithTracing(tracing => tracing
        .AddSource("FabrCore.Sdk.*")
        .AddSource("FabrCore.Host.*")
        .AddSource("FabrCore.Host.PrincipalGrain"))
    .WithMetrics(metrics => metrics
        .AddMeter("FabrCore.Sdk.*")
        .AddMeter("FabrCore.Host.*")
        .AddMeter("FabrCore.Host.PrincipalGrain"));

Metrics

Principal grain metrics use the fabrcore.principal.* naming family. Agent grain metrics continue to use fabrcore.agent.*. HTTP/API clients should be observed with normal application HTTP instrumentation plus FabrCore Host traces.

Distributed Tracing

FabrCore propagates TraceId, SpanId, and ParentSpanId across messages and events. Verifiable execution signs the same causal graph when evidence recording is enabled.

Documentation