-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
statesysten: add processSpanStateChange function to statesystem #45
base: master
Are you sure you want to change the base?
statesysten: add processSpanStateChange function to statesystem #45
Conversation
*A new function (processSpanStateChange) is added to the TransientState class. Because in async traces unlike sync traces, the position of the event in fOngoingInfo is not the same as the quark of the event in the call stack. So we should pass two integer, quark and callstack quark to the function. * the Statesystem and ItmfStateSystem classes are changed relayed to this function. Signed-off-by: Fariba Daneshgar <faraji.daneshgar@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Transient State is an implementation of the API. Are we certain we want to add an API for this feature? It seems... like everything else will need to implement "unsupported" though it's designed for one implementation.
@@ -681,4 +681,19 @@ static void logMissingInterval(int attribute, long timestamp) { | |||
attribute + " at time " + timestamp + //$NON-NLS-1$ | |||
", returning dummy interval"); //$NON-NLS-1$ | |||
} | |||
|
|||
/** | |||
* @param t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More doc please
* @throws StateValueTypeException | ||
*/ | ||
@Override | ||
public void modifySpanAttribute(long t, Object value, int attributeQuark, int spanQuark) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Span is not a state system notion, it's a contextual interval. Should we bring it down to this level of abstraction?
@@ -540,4 +541,15 @@ int getQuarkRelative(int startingNodeQuark, String... subPath) | |||
*/ | |||
Iterable<@NonNull ITmfStateInterval> query2D(@NonNull Collection<Integer> quarks, | |||
long start, long end) throws StateSystemDisposedException, IndexOutOfBoundsException, TimeRangeException; | |||
|
|||
/** | |||
* @param t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More documentation
A new function (processSpanStateChange) is added to the TransientState class. Because in async traces unlike sync traces, the position of the event in fOngoingInfo is not the same as the quark of the event in the call stack. So we should pass two integer, quark and callstack quark to the function.
The Statesystem and ItmfStateSystem classes are changed relayed to this function.
this changes is for adding flamgraph analysis for opentracing