Metadata

Dapr.Metadata provides typed access to Dapr runtime metadata from a .NET application. The package registers a hosted service that fetches sidecar metadata at startup and exposes it through the .NET options pattern as DaprMetadata. You can inject it via IOptions<DaprMetadata>, IOptionsSnapshot<DaprMetadata>, or IOptionsMonitor<DaprMetadata>, giving you access to the components, subscriptions, app connection properties, and other metadata the runtime reports about itself.

The client is registered with dependency injection via AddDaprMetadata() and can be configured from IConfiguration or environment variables.

Core concepts

Next steps

Last modified October 22, 2026: Upmerge v1.18 into v1.19 (9805cc1cf)