Skip to content

Conversation

mfateev
Copy link
Member

@mfateev mfateev commented Apr 13, 2021

What was changed:

Changes to the MarkerRecordedEvent details map.

  1. Added "input" that contains activity arguments. Can be disabled through LocalActivityOptions.doNotIncludeArgumentsIntoMarker to reduce history size.
  2. Added "type" that contains the activity type name.
  3. Renamed "data" to "result" for activity result.

Also did refactoring of unit tests to reduce repetitive code.

Why?

Debugging local activities is hard as their type and arguments are not part of the event history.

Checklist

  1. Closes issue:
    Fix for Include local activity input into its marker decision #135.

  2. How was this tested:
    Looking for the "input" field in the UI.

private final Duration localRetryThreshold;
private final Duration startToCloseTimeout;
private final RetryOptions retryOptions;
private boolean doNotIncludeArgumentsIntoMarker;
Copy link
Contributor

@vitarb vitarb Apr 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit. generally positive naming is preferable when possible, can we call it includeArgumentsIntoMarker instead and flip the logic, this way we can avoid code like !localActivityParameters.isDoNotIncludeArgumentsIntoMarker() which is not very readable cause it's a "not do not".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I always follow the pattern that all properties defaults should match the type default. For a boolean the default value is false. That's why I named the property this way to make the false default value correct.

Copy link
Contributor

@vitarb vitarb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left a small comment, feel free to address or ignore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants