withOtelAgent
Method
interface ContainerResource { // ... omitted for brevity withOtelAgent(agentPath?: string): IResourceWithEnvironment;}Signature
method
withOtelAgentbuilderConfigures the OpenTelemetry Java Agent for the Java application.
withOtelAgent(agentPath?: string): IResourceWithEnvironmentParameters
agentPathstringoptionalReturns
IResourceWithEnvironmentApplies to
This method applies to the following types: