You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
LiveView can be very noisy, and the current implementation of opentelemetry_phoenix currently only supports enabled/disabled (I believe).
Describe the solution you'd like
I'm not sure the best general solution, presumably an allow and/or deny list for filtering these events.
Describe alternatives you've considered
My current solution, as suggested in the Elixir slack, is a custom sampler.
defmoduleSpanNamesSamplerdodefsetup(attributes)whenis_map(attributes)doattributesenddefsetup(_),do: %{}defdescription(_),do: "Allows you to drop spans based on their name."defshould_sample(_ctx,_trace_id,_links,span_name,_span_kind,_attributes,config_attributes)dospans_to_drop=Map.get(config_attributes,:spans_to_drop,[])ifEnum.member?(spans_to_drop,span_name)do{:drop,[],[]}else{:record_and_sample,[],[]}endendend
Is your feature request related to a problem? Please describe.
LiveView can be very noisy, and the current implementation of
opentelemetry_phoenix
currently only supports enabled/disabled (I believe).Describe the solution you'd like
I'm not sure the best general solution, presumably an allow and/or deny list for filtering these events.
Describe alternatives you've considered
My current solution, as suggested in the Elixir slack, is a custom sampler.
The text was updated successfully, but these errors were encountered: