Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 315ce74

Browse files
authored
add code_change to oc_reporter to make otp-19 happy (#117)
1 parent a384a87 commit 315ce74

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/oc_reporter.erl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
handle_call/3,
2828
handle_cast/2,
2929
handle_info/2,
30+
code_change/3,
3031
terminate/2]).
3132

3233
-include("opencensus.hrl").
@@ -95,6 +96,9 @@ handle_info(report_spans, State=#state{reporter=Reporter,
9596
send_spans(Reporter, Config),
9697
{noreply, State#state{timer_ref=Ref1}}.
9798

99+
code_change(_, State, _) ->
100+
{ok, State}.
101+
98102
terminate(_, #state{timer_ref=Ref}) ->
99103
erlang:cancel_timer(Ref),
100104
ok.

0 commit comments

Comments
 (0)