JavaAppResource.WithOtelAgent
Method
type JavaAppResource interface { // ... 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 A reference to the I.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: