Skip to content
DocsTry Aspire
DocsTry

IResourceWithEnvironment.withOtlpExporter

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

Signature

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

Defined on

This method is defined on the following type: