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