Package graphql.agent.result
Class ExecutionTrackingResult
- java.lang.Object
-
- graphql.agent.result.ExecutionTrackingResult
-
@PublicApi public class ExecutionTrackingResult extends java.lang.Object
This is the result of the agent tracking an execution. It can be found inside the GraphQLContext after the execution with the keyEXECUTION_TRACKING_KEY
Note: While this is public API, the main goal is temporary debugging to understand an execution better with minimal overhead. Therefore this will evolve over time if needed to be performant and reflect the overall execution. It is not recommended to have the agent on always or to rely on this class during normal execution
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExecutionTrackingResult.BatchLoadingCall
static class
ExecutionTrackingResult.DFResultType
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<java.lang.String,java.util.List<ExecutionTrackingResult.BatchLoadingCall>>
dataLoaderNameToBatchCall
java.util.Map<org.dataloader.DataLoader,java.lang.String>
dataLoaderToName
java.util.concurrent.atomic.AtomicLong
endExecutionTime
java.util.concurrent.atomic.AtomicReference<java.lang.String>
endThread
static java.lang.String
EXECUTION_TRACKING_KEY
java.util.Map<ResultPath,java.lang.String>
finishedThreadPerPath
java.util.Map<ResultPath,java.lang.Long>
finishedTimePerPath
java.util.Map<ResultPath,java.lang.String>
resultPathToDataLoaderUsed
java.util.concurrent.atomic.AtomicLong
startExecutionTime
java.util.Map<ResultPath,java.lang.String>
startInvocationThreadPerPath
java.util.concurrent.atomic.AtomicReference<java.lang.String>
startThread
java.util.Map<ResultPath,java.lang.Long>
timePerPath
-
Constructor Summary
Constructors Constructor Description ExecutionTrackingResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
dataFetcherCount()
void
end(ResultPath path, long endTime)
java.util.List<java.lang.String>
getDataLoaderNames()
ExecutionTrackingResult.DFResultType
getDfResultTypes(ResultPath resultPath)
ExecutionTrackingResult.DFResultType
getDfResultTypes(java.lang.String resultPath)
long
getTime(ResultPath path)
long
getTime(java.lang.String path)
java.lang.String
print(java.lang.String executionId)
void
setDfResultTypes(ResultPath resultPath, ExecutionTrackingResult.DFResultType resultTypes)
void
start(ResultPath path, long startTime)
java.lang.String
toString()
-
-
-
Field Detail
-
EXECUTION_TRACKING_KEY
public static final java.lang.String EXECUTION_TRACKING_KEY
- See Also:
- Constant Field Values
-
startThread
public final java.util.concurrent.atomic.AtomicReference<java.lang.String> startThread
-
endThread
public final java.util.concurrent.atomic.AtomicReference<java.lang.String> endThread
-
startExecutionTime
public final java.util.concurrent.atomic.AtomicLong startExecutionTime
-
endExecutionTime
public final java.util.concurrent.atomic.AtomicLong endExecutionTime
-
resultPathToDataLoaderUsed
public final java.util.Map<ResultPath,java.lang.String> resultPathToDataLoaderUsed
-
dataLoaderToName
public final java.util.Map<org.dataloader.DataLoader,java.lang.String> dataLoaderToName
-
timePerPath
public final java.util.Map<ResultPath,java.lang.Long> timePerPath
-
finishedTimePerPath
public final java.util.Map<ResultPath,java.lang.Long> finishedTimePerPath
-
finishedThreadPerPath
public final java.util.Map<ResultPath,java.lang.String> finishedThreadPerPath
-
startInvocationThreadPerPath
public final java.util.Map<ResultPath,java.lang.String> startInvocationThreadPerPath
-
dataLoaderNameToBatchCall
public final java.util.Map<java.lang.String,java.util.List<ExecutionTrackingResult.BatchLoadingCall>> dataLoaderNameToBatchCall
-
-
Method Detail
-
print
public java.lang.String print(java.lang.String executionId)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getDataLoaderNames
public java.util.List<java.lang.String> getDataLoaderNames()
-
start
public void start(ResultPath path, long startTime)
-
end
public void end(ResultPath path, long endTime)
-
dataFetcherCount
public int dataFetcherCount()
-
getTime
public long getTime(ResultPath path)
-
getTime
public long getTime(java.lang.String path)
-
setDfResultTypes
public void setDfResultTypes(ResultPath resultPath, ExecutionTrackingResult.DFResultType resultTypes)
-
getDfResultTypes
public ExecutionTrackingResult.DFResultType getDfResultTypes(ResultPath resultPath)
-
getDfResultTypes
public ExecutionTrackingResult.DFResultType getDfResultTypes(java.lang.String resultPath)
-
-