Skip to content
DocsTry Aspire
DocsTry

DaprSidecarOptions Properties

RecordProperties32 members
Options for configuring a Dapr sidecar.
AppChannelAddressSection titled AppChannelAddressnullablestring?
Gets or sets the network address at which the application listens.
public string? AppChannelAddress { get; init; }
AppEndpointSection titled AppEndpointnullablestring?
Gets or sets the endpoint of the application the sidecar is connected to.
public string? AppEndpoint { get; init; }
AppHealthCheckPathSection titled AppHealthCheckPathnullablestring?
Gets or sets the path used for health checks (HTTP only).
public string? AppHealthCheckPath { get; init; }
AppHealthProbeIntervalSection titled AppHealthProbeIntervalnullableint?
Gets or sets the interval, in seconds, to probe for the health of the application.
public int? AppHealthProbeInterval { get; init; }
AppHealthProbeTimeoutSection titled AppHealthProbeTimeoutnullableint?
Gets or sets the timeout, in milliseconds, for application health probes.
public int? AppHealthProbeTimeout { get; init; }
AppHealthThresholdSection titled AppHealthThresholdnullableint?
Gets or sets the number of consecutive failures for the application to be considered unhealthy.
public int? AppHealthThreshold { get; init; }
AppIdSection titled AppIdnullablestring?
Gets or sets the ID for the application, used for service discovery.
public string? AppId { get; init; }
AppMaxConcurrencySection titled AppMaxConcurrencynullableint?
Gets or sets the concurrency level of the application (unlimited if omitted).
public int? AppMaxConcurrency { get; init; }
AppPortSection titled AppPortnullableint?
Gets or sets the port on which the application is listening.
public int? AppPort { get; init; }
AppProtocolSection titled AppProtocolnullablestring?
Gets or sets the protocol (i.e. grpc, grpcs, http, https, h2c) the Dapr sidecar uses to talk to the application.
public string? AppProtocol { get; init; }
CommandSection titled CommandIImmutableList<string>
Gets or sets the command run by the Dapr CLI as part of starting the sidecar.
public IImmutableList<string> Command { get; init; }
ConfigSection titled Confignullablestring?
Gets or sets the path to the Dapr sidecar configuration file.
public string? Config { get; init; }
DaprGrpcPortSection titled DaprGrpcPortnullableint?
Gets or sets the gRPC port on which the Dapr sidecar should listen.
public int? DaprGrpcPort { get; init; }
DaprHttpMaxRequestSizeSection titled DaprHttpMaxRequestSizenullableint?
Gets or sets the maximum size, in MB, of a Dapr request body.
public int? DaprHttpMaxRequestSize { get; init; }
DaprHttpPortSection titled DaprHttpPortnullableint?
Gets or sets the HTTP port on which the Dapr sidecard should listen.
public int? DaprHttpPort { get; init; }
DaprHttpReadBufferSizeSection titled DaprHttpReadBufferSizenullableint?
Gets or sets the maximum size, in KB, of the HTTP header read buffer.
public int? DaprHttpReadBufferSize { get; init; }
DaprInternalGrpcPortSection titled DaprInternalGrpcPortnullableint?
Gets or sets the gRPC port on which the Dapr sidecar should listen for sidecar-to-sidecar calls.
public int? DaprInternalGrpcPort { get; init; }
DaprListenAddressesSection titled DaprListenAddressesnullablestring?
Gets or sets a comma (,) delimited list of IP addresses at which the Dapr sidecar will listen.
public string? DaprListenAddresses { get; init; }
DaprMaxBodySizeSection titled DaprMaxBodySizenullablestring?
Gets or sets the max size of request body Inreasing the request max body size to handle large file uploads using http and grpc protocols. Set the value using size units (e.g., 16Mi for 16MB). The default is 4Mi.
public string? DaprMaxBodySize { get; init; }
DaprReadBufferSizeSection titled DaprReadBufferSizenullablestring?
Gets or sets the maximum size, read buffer. Increasing max size of http header read buffer in KB to to support larger header values. Set the value using size units, for example 32Ki will support headers up to 32KB . Default is 4Ki for 4KB
public string? DaprReadBufferSize { get; init; }
EnableApiLoggingSection titled EnableApiLoggingnullablebool?
Gets or sets whether the Dapr sidecar logs API calls at INFO verbosity.
public bool? EnableApiLogging { get; init; }
EnableAppHealthCheckSection titled EnableAppHealthChecknullablebool?
Gets or sets whether health checks are performed for the application.
public bool? EnableAppHealthCheck { get; init; }
EnableProfilingSection titled EnableProfilingnullablebool?
Gets or sets whether to perform pprof profiling via the application HTTP endpoint.
public bool? EnableProfiling { get; init; }
LogLevelSection titled LogLevelnullablestring?
Gets or sets the Dapr sidecar log verbosity (i.e. debug, info, warn, error, fatal, or panic).
public string? LogLevel { get; init; }
The default log verbosity is "info".
MetricsPortSection titled MetricsPortnullableint?
Gets or sets the port on which the Dapr sidecar reports metrics.
public int? MetricsPort { get; init; }
PlacementHostAddressSection titled PlacementHostAddressnullablestring?
Gets or sets the address of the placement service.
public string? PlacementHostAddress { get; init; }
The format is either "hostname" for the default port or "hostname:port" for a custom port. The default is "localhost".
ProfilePortSection titled ProfilePortnullableint?
Gets or sets the port on which the Dapr sidecar reports profiling data.
public int? ProfilePort { get; init; }
ResourcesPathsSection titled ResourcesPathsIImmutableSet<string>
Gets or sets the paths of Dapr sidecar resources (i.e. resources).
public IImmutableSet<string> ResourcesPaths { get; init; }
RunFileSection titled RunFilenullablestring?
Gets or sets the path to the Dapr run file to run.
public string? RunFile { get; init; }
RuntimePathSection titled RuntimePathnullablestring?
Gets or sets the directory of the Dapr runtime (i.e. daprd).
public string? RuntimePath { get; init; }
SchedulerHostAddressSection titled SchedulerHostAddressnullablestring?
Gets or sets the address of the scheduler service.
public string? SchedulerHostAddress { get; init; }
The format is either "hostname" for the default port or "hostname:port" for a custom port. The default is "localhost".
UnixDomainSocketSection titled UnixDomainSocketnullablestring?
Gets or sets the path to a Unix Domain Socket (UDS) directory.
public string? UnixDomainSocket { get; init; }
If specified, the Dapr sidecar will use Unix Domain Sockets for API calls.