Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

JavaAppResource.WithOtelAgentDefaultPath

Method
📦 Aspire.Hosting.Java v17.0.0-preview.1.26565.2
type JavaAppResource interface {
// ... omitted for brevity
WithOtelAgentDefaultPath() JavaAppResource
}

Signature

methodWithOtelAgentDefaultPathbuilder
Runs the application with the OpenTelemetry Java agent from the location the build tool writes it to.
WithOtelAgentDefaultPath() JavaAppResource
JavaAppResource

A reference to the IResourceBuilder.

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

Defined on

This method is defined on the following type: