WithOtelAgent
Method
func (JavaAppResource) WithOtelAgent(agentPath string) JavaAppResourceSignature
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().
Applies to
This method applies to the following types: