JavaAppResource.withOtelAgent
Method
interface JavaAppResource { // ... omitted for brevity withOtelAgent(agentPath: string): JavaAppResource;}Signature
method
withOtelAgent builderRuns the application with the OpenTelemetry Java agent so it exports traces, metrics, and logs to Aspire.
withOtelAgent(agentPath: string): JavaAppResourceParameters
agentPath stringThe path to the `opentelemetry-javaagent.jar` file.Returns
JavaAppResource Defined on
This method is defined on the following type: