We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3d0e14 commit f1256b1Copy full SHA for f1256b1
apps/opentelemetry/src/otel_resource.erl
@@ -107,8 +107,8 @@ attributes(_) ->
107
108
%% @doc Returns `true' if `Key' is valid and part of the given resource.
109
-spec is_key(key(), t()) -> boolean().
110
-is_key(Key, #resource{attributes=Attributes}) ->
111
- case try_check_key(Key, false) of
+is_key(K, #resource{attributes=Attributes}) ->
+ case try_check_key(K, false) of
112
{true, Key} ->
113
maps:is_key(Key, otel_attributes:map(Attributes));
114
_ ->
0 commit comments