Skip to content
Docs Try Aspire
Docs Try

withOtlpDevTunnel

Method
📦 Aspire.Hosting.Maui v13.4.0-preview.1.26281.18
interface MauiAndroidDeviceResource {
// ... omitted for brevity
withOtlpDevTunnel(): IMauiPlatformResource;
}

Signature

method withOtlpDevTunnel builder
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

Applies to

This method applies to the following types: