Skip to content
DocsTry Aspire
DocsTry

withOtlpExporter

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

Signature

methodwithOtlpExporterbuilder
Configures OTLP telemetry export
withOtlpExporter(protocol?: OtlpProtocol): IResourceWithEnvironment
protocolOtlpProtocoloptional
IResourceWithEnvironment

Applies to

This method applies to the following types: