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
JavaAppResourceApplies to
This method applies to the following types: