Commit b6a0fa86 authored by Heinz N. Gies's avatar Heinz N. Gies

libbump

parent 0525a359
......@@ -13,6 +13,7 @@
{dproto, "~>0.4.0"},
{mmath, "~>0.2.0"},
{hdr_histogram, "~>0.2.0"},
{otter, ".*", {git, "https://github.com/project-fifo/otter.git", {branch, "dev"}}},
%%{dflow, "~>0.1.0"},
{dflow, ".*", {git, "https://github.com/dalmatinerdb/dflow.git", {branch, "otter"}}},
%%{dqe_fun, "~>0.1.11"},
......
......@@ -14,15 +14,19 @@
{<<"dqe_idx">>,{pkg,<<"dqe_idx">>,<<"0.2.1">>},0},
{<<"dqe_idx_ddb">>,{pkg,<<"dqe_idx_ddb">>,<<"0.2.4">>},0},
{<<"dqe_idx_pg">>,{pkg,<<"dqe_idx_pg">>,<<"0.3.6">>},0},
{<<"dynamic_compile">>,{pkg,<<"dynamic_compile">>,<<"1.0.0">>},1},
{<<"epgsql">>,{pkg,<<"epgsql">>,<<"3.3.0">>},2},
{<<"erlware_commons">>,{pkg,<<"erlware_commons">>,<<"1.0.0">>},1},
{<<"goldrush">>,{pkg,<<"goldrush">>,<<"0.1.9">>},1},
{<<"hdr_histogram">>,{pkg,<<"hdr_histogram">>,<<"0.2.0">>},0},
{<<"ibrowse">>,{pkg,<<"ibrowse">>,<<"4.4.0">>},2},
{<<"ibrowse">>,{pkg,<<"ibrowse">>,<<"4.4.0">>},1},
{<<"jsxd">>,{pkg,<<"jsxd">>,<<"0.2.4">>},1},
{<<"lager">>,{pkg,<<"lager">>,<<"3.2.4">>},0},
{<<"mmath">>,{pkg,<<"mmath">>,<<"0.2.17">>},0},
{<<"otters">>,{pkg,<<"otters">>,<<"0.1.2">>},1},
{<<"otters">>,
{git,"https://github.com/project-fifo/otter.git",
{ref,"8a78f88236fb85d991e96c1947ab095c82e2f931"}},
0},
{<<"pgapp">>,{pkg,<<"pgapp">>,<<"0.0.2">>},1},
{<<"poolboy">>,{pkg,<<"poolboy">>,<<"1.5.1">>},1},
{<<"qdate">>,
......@@ -40,6 +44,7 @@
{<<"dqe_idx">>, <<"6BD1F0DE217DF0B213BD86CDBE19F5EEDBCAF0D5CBD51D955DB574A5C2DBA1EE">>},
{<<"dqe_idx_ddb">>, <<"2316B160D3EF3AAF2C60213A870D7B6A13C4035BF578DDC52301DA879099420C">>},
{<<"dqe_idx_pg">>, <<"5B93531BC946E53BED16947ADB01753F54DF6E057AD0B18AD13E603540C9A779">>},
{<<"dynamic_compile">>, <<"8171B2CB4953EA3ED2EF63F5B26ABF677ACD0CA32210C2A08A7A8406A743F76B">>},
{<<"epgsql">>, <<"974A578340E52012CBAB820CE756E7ED1DF1BAF0110C59A6753D8337A2CF9454">>},
{<<"erlware_commons">>, <<"087467DE5833C0BB5B3CCDD387F9E9C1FB816A75B7A709629BF24B5ED3246C51">>},
{<<"goldrush">>, <<"F06E5D5F1277DA5C413E84D5A2924174182FB108DABB39D5EC548B27424CD106">>},
......@@ -48,7 +53,6 @@
{<<"jsxd">>, <<"C14114AFCA463F2D03D3FB6CC81FD51CDA8CA86A47E5AC3ABDF0CA572A73A413">>},
{<<"lager">>, <<"A6DEB74DAE7927F46BD13255268308EF03EB206EC784A94EAF7C1C0F3B811615">>},
{<<"mmath">>, <<"DFD52637B19F1EEF6B0AAAC473CAC2FC27A7190B6A6420454A917423527F3030">>},
{<<"otters">>, <<"F4224DA7B2B0CD3E588E903CDC4F07D1A02B19720855E7DAABF1564F7749F052">>},
{<<"pgapp">>, <<"3E104BB777C8455D8B26D1538B67ABE0188EE97B1DF973FD936C2204CB316196">>},
{<<"poolboy">>, <<"6B46163901CFD0A1B43D692657ED9D7E599853B3B21B95AE5AE0A777CF9B6CA8">>},
{<<"qdate_localtime">>, <<"5F6C3ACF10ECC5A7E2EFA3DCD2C863102B962188DBD9E086EC01D29FE029DA29">>},
......
-module(dqe_span).
-export([id/1, start/2, stop/0, tag/2, log/1]).
-export([start/2, stop/0, tag/2, log/1]).
-define(IF_SPAN(Code),
case otter:span_pget() of
undefined ->
ok;
_ ->
Code
end).
%% Random 64 bit integer.
id(undefined) ->
undefined;
id(_ParentSpan) ->
otter_lib:id().
start(_, undefined) ->
ok;
start(Name, TraceID) ->
otter:span_pstart(Name, TraceID).
ottersp:start(Name, TraceID).
stop() ->
?IF_SPAN(otter:span_pend()).
ottersp:finish().
tag(Key, Value) ->
?IF_SPAN(otter:span_ptag(Key, Value, "dqe")).
ottersp:tag(Key, Value, "dqe").
log(Text) ->
?IF_SPAN(otter:span_plog(Text, "dqe")).
ottersp:log(Text, "dqe").
"https://github.com/project-fifo/otter.git",
{ref,
"8a78f88236fb85d991e96c1947ab095c82e2f931"}})
└─ dqe─0.5.0
├─ ddb_connection─0.2.1
│ ├─ ddb_client─0.4.2
│ └─ poolboy─1.5.1
├─ dflow─0.1.7
│ └─ otters─0.1.2
│ └─ ibrowse─4.4.0
├─ dproto─0.4.1
│ ├─ jsxd─0.2.4
│ └─ snappiest─1.2.0
......@@ -18,6 +19,9 @@
├─ lager─3.2.4
│ └─ goldrush─0.1.9
├─ mmath─0.2.17
├─ otters─v0.1.4+build.123.ref8a78f88
│ ├─ dynamic_compile─1.0.0
│ └─ ibrowse─4.4.0
└─ qdate─0.4.4
├─ erlware_commons─1.0.0
│ └─ cf─0.2.2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment