Skip to content
Docs Try Aspire
Docs Try

withOtlpExporterProtocol

Method
📦 Aspire.Hosting v13.2.0
interface ContainerResource {
// ... omitted for brevity
withOtlpExporterProtocol(protocol: OtlpProtocol): IResourceWithEnvironment;
}

Signature

method withOtlpExporterProtocol builder
Configures OTLP telemetry export with specific protocol
withOtlpExporterProtocol(protocol: OtlpProtocol): IResourceWithEnvironment
protocol OtlpProtocol
IResourceWithEnvironment

Applies to

This method applies to the following types: