JavaAppResource.withOtelAgent
Method
interface JavaAppResource { // ... omitted for brevity withOtelAgent(agentPath: string): JavaAppResource;}Signature
method
withOtelAgentbuilderRuns the application with the OpenTelemetry Java agent so it exports traces, metrics, and logs to Aspire.
withOtelAgent(agentPath: string): JavaAppResourceParameters
agentPathstringReturns
JavaAppResourceDefined on
This method is defined on the following type: