diff options
author | Jordan Bracco <href@random.sh> | 2022-04-17 03:25:09 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-04-17 03:25:09 +0000 |
commit | 93d3514676cad95b94bbb3e483d02b7ea0076bba (patch) | |
tree | 0f7548c1cd274ec01873b5ebf39b6a39bea4e282 /apps/dreki/include/dreki_otel.hrl | |
parent | guess it was time for an initial commit (diff) |
Diffstat (limited to 'apps/dreki/include/dreki_otel.hrl')
-rw-r--r-- | apps/dreki/include/dreki_otel.hrl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/dreki/include/dreki_otel.hrl b/apps/dreki/include/dreki_otel.hrl new file mode 100644 index 0000000..e784874 --- /dev/null +++ b/apps/dreki/include/dreki_otel.hrl @@ -0,0 +1,11 @@ +-include_lib("opentelemetry_api/include/opentelemetry.hrl"). +-include_lib("opentelemetry_api/include/otel_tracer.hrl"). + +-define(FUN_NAME, binary:list_to_bin([ + atom_to_binary(?MODULE), <<":">>, + atom_to_binary(?FUNCTION_NAME), <<"/">>, + integer_to_binary(?FUNCTION_ARITY) + ]) +). + +-define(FUN_NAME(D), binary:list_to_bin([?FUN_NAME, atom_to_binary(D)])). |