Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

withOtelAgentDefaultPath

Method
📦 Aspire.Hosting.Java v13.6.0-preview.1.26478.8
interface JavaAppResource {
// ... 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

Applies to

This method applies to the following types: