Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

JavaAppResource.withOtelAgent

Method
📦 Aspire.Hosting.Java v13.6.0-preview.1.26478.8
interface JavaAppResource {
// ... omitted for brevity
withOtelAgent(agentPath: string): JavaAppResource;
}

Signature

methodwithOtelAgentbuilder
Runs the application with the OpenTelemetry Java agent so it exports traces, metrics, and logs to Aspire.
withOtelAgent(agentPath: string): JavaAppResource
agentPathstring
JavaAppResource

Defined on

This method is defined on the following type: