Package com.appoptics.api.ext
There are 2 ways to insert custom instrumentation:
-
Apply annotation to methods
LogMethod
-
Create and report traces/events explicitly using
Trace
andTraceEvent
The SDK is based around event generation and reporting. Events are created, populated with key/value pairs and reported.
The SDK jar file appoptics-sdk.jar can be located in the agent installation directory and copied into your build project. It can also be downloaded from https://files.appoptics.com/java/latest/ or be included as a Maven Dependency with group ID com.appoptics.agent.java and artifact ID appoptics-sdk
The SDK jar file appoptics-sdk.jar must be used during the development and building phases.
Please import or reference classes/interfaces from package com.appoptics.api.ext
only and ensure the SDK jar file/classes is accessible in your runtime classpath/environment.
Please take note that the java agent jar file appoptics-agent.jar should only be used via the javaagent JVM argument and not be included elsewhere in your runtime classpath/environment or you may encounter classloader errors.
All publicly accessible SDK classes are in this com.appoptics.api.ext
package.
Your application code should not import classes outside of this package. Even if they are marked as public, classes and interfaces outside of com.appoptics.api.ext
are subject to change without notice.
- See Also:
- Java Agent - Instrumentation SDK
-
Interface Summary Interface Description TraceEvent Interface for trace event which is the building block of traces. -
Class Summary Class Description AgentChecker Checker to ensure agent is available and ready to report dataMetrics API for recording custom metrics.RUM Deprecated. Trace API for initiating traces and creating events, for use by non-web / background apps, etc.TraceContext Allows explicit control on tracing context, which is used to manage the linkage ofTraceEvent
s. -
Annotation Types Summary Annotation Type Description LogMethod Logs execution of a method call using annotation.ProfileMethod Profiles execution of a method call using annotation.