Skip to content

0.9.0 Migration Guide

Paul Cleary edited this page Dec 6, 2018 · 4 revisions

0.9.x is not backward compatible with 0.8.x and prior versions. This document highlights the differences, in particular those changes that upgrades need to take into consideration.

No more JMoney

0.8.x had a handy JMoney java api that simplified tracing for java applications. It is possible to add this back, but as of 0.9.0 it does not exist.

0.8.x code example

import com.comcast.money.japi.JMoney;

...
JMoney.startSpan("long-values")
JMoney.record("the-long", 1)
JMoney.stopSpan()
...

0.9.x code example

import com.comcast.money.core.Money;

...
Money.Environment().tracer().startSpan("long-values");
Money.Environment().tracer().record("the-long", 1L);
Money.Environment().tracer().stopSpan();
...

Configuration Changes

The configuration syntax has dramatically changed moving from 0.8.x to 0.9.x. We recommend replacing the money configuration with the new configuration