Skip to content
Docs Try Aspire
Docs Try

withOtelAgent

Method
📦 CommunityToolkit.Aspire.Hosting.Java v13.4.0
interface ContainerResource {
// ... omitted for brevity
withOtelAgent(agentPath?: string): IResourceWithEnvironment;
}

Signature

method withOtelAgent builder
Configures the OpenTelemetry Java Agent for the Java application.
withOtelAgent(agentPath?: string): IResourceWithEnvironment
agentPath string optional
IResourceWithEnvironment

Applies to

This method applies to the following types: