Skip to content
DocsTry Aspire
DocsTry

withOtelAgent

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

Signature

methodwithOtelAgentbuilder
Configures the OpenTelemetry Java Agent for the Java application.
withOtelAgent(agentPath?: string): IResourceWithEnvironment
agentPathstringoptional
IResourceWithEnvironment

Applies to

This method applies to the following types: