aboutsummaryrefslogtreecommitdiff
path: root/apps/dreki/include/dreki_otel.hrl
blob: e78487461135c7fea227da3efeb0b79192d3c8a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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)])).