Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithOtlpExporter

Method
📦 Aspire.Hosting v17.0.0
func (ResourceWithEnvironment) WithOtlpExporter(options ...*WithOtlpExporterOptions) ResourceWithEnvironment

Signature

methodWithOtlpExporterbuilder
Configures OTLP telemetry export
WithOtlpExporter(options ...*WithOtlpExporterOptions) ResourceWithEnvironment
options...*WithOtlpExporterOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithOtlpExporterOptions argument.

Protocol*OtlpProtocol
ResourceWithEnvironment

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

Applies to

This method applies to the following types: