Skip to content

Commit

Permalink
change telemetry id
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanjos committed Jun 20, 2024
1 parent bec0e4a commit bfc4657
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/absinthe/subscription.ex
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,9 @@ defmodule Absinthe.Subscription do
storage_module = storage_implementation(pubsub)

:telemetry.span(
[:absinthe, :subscription, :storage, :subscribe],
[:absinthe, :subscription, :document, :subscribe],
%{
doc_id: doc_id,
doc: doc,
field_keys: field_keys,
storage_module: storage_module
},
Expand All @@ -166,7 +165,6 @@ defmodule Absinthe.Subscription do
{result,
%{
doc_id: doc_id,
doc: doc,
field_keys: field_keys,
storage_module: storage_module
}}
Expand All @@ -179,7 +177,7 @@ defmodule Absinthe.Subscription do
storage_module = storage_implementation(pubsub)

:telemetry.span(
[:absinthe, :subscription, :storage, :unsubscribe],
[:absinthe, :subscription, :document, :unsubscribe],
%{
doc_id: doc_id,
storage_module: storage_module
Expand All @@ -203,9 +201,9 @@ defmodule Absinthe.Subscription do
storage_module = storage_implementation(pubsub)

:telemetry.span(
[:absinthe, :subscription, :storage, :get],
[:absinthe, :subscription, :document, :get],
%{
key: key,
field_key: key,
storage_module: storage_module
},
fn ->
Expand All @@ -222,7 +220,7 @@ defmodule Absinthe.Subscription do

{result,
%{
key: key,
field_key: key,
storage_module: storage_module
}}
end
Expand Down

0 comments on commit bfc4657

Please sign in to comment.