Skip to content
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

Converts scala functions Span.timestamp, duration to vals #817

Merged
merged 1 commit into from
Nov 6, 2015

Conversation

codefromthecrypt
Copy link
Member

Before this change, Span.timestamp and duration were always derived
lazily from annotations. This decouples that logic by converting the
scala methods to vals and populating them with
ApplyTimestampAndDuration.

This serves us in at least two ways. First, the implicit association
between annotations and timestamp or duration was tested in various
components. Making these explicit centralizes the responsibility, and
lowers the test burden on other components. Also, we want to formalize
these fields in persisted models in support of duration queries and
local spans (#807). Organizing logic ahead of this work makes the change
to persistence simpler.

Before this change, Span.timestamp and duration were always derived
lazily from annotations. This decouples that logic by converting the
scala methods to vals and populating them with
`ApplyTimestampAndDuration`.

This serves us in at least two ways. First, the implicit association
between annotations and timestamp or duration was tested in various
components. Making these explicit centralizes the responsibility, and
lowers the test burden on other components. Also, we want to formalize
these fields in persisted models in support of duration queries and
local spans (#807). Organizing logic ahead of this work makes the change
to persistence simpler.
@codefromthecrypt codefromthecrypt force-pushed the eager-span-timestamp-duration branch from 7370b8d to 651ecb6 Compare November 6, 2015 17:43
codefromthecrypt pushed a commit that referenced this pull request Nov 6, 2015
Converts scala functions Span.timestamp, duration to vals
@codefromthecrypt codefromthecrypt merged commit 9f8d470 into master Nov 6, 2015
@codefromthecrypt codefromthecrypt deleted the eager-span-timestamp-duration branch November 6, 2015 17:59
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.

1 participant