Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithOtlpDevTunnel

Method
📦 Aspire.Hosting.Maui v17.0.0-preview.1.26565.2
func (IMauiPlatformResource) WithOtlpDevTunnel() IMauiPlatformResource

Signature

methodWithOtlpDevTunnelbuilder
Configures the MAUI platform resource to send OpenTelemetry data through an automatically created dev tunnel. This is the easiest option for most scenarios, as it handles tunnel creation, configuration, and endpoint injection automatically.
WithOtlpDevTunnel() IMauiPlatformResource
IMauiPlatformResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: