commanded / commanded/commanded
no function clause matching in Commanded.Commands.Dispatcher.telemetry_stop/3
Open
Nobody has claimed this yet.
- Dominant language
- Elixir
- Stars
- 2k
- Forks
- 258
- PR merge metrics
- No merged PRs in 30d
Description
We are getting the following issue:
FunctionClauseError: no function clause matching in Commanded.Commands.Dispatcher.telemetry_stop/3
File "lib/commanded/commands/dispatcher.ex", line 214, in Commanded.Commands.Dispatcher.telemetry_stop/3
File "lib/commanded/commands/dispatcher.ex", line 59, in Commanded.Commands.Dispatcher.dispatch/1
File "lib/myapp/balances_updater.ex", line 25, in MyApp.BalancesUpdater.handle_message/3
File "lib/broadway/topology/processor_stage.ex", line 159, in anonymous fn/6 in Broadway.Topology.ProcessorStage.handle_messages/4
File "/opt/app/deps/telemetry/src/telemetry.erl", line 320, in :telemetry.span/3
File "lib/broadway/topology/processor_stage.ex", line 146, in Broadway.Topology.ProcessorStage.handle_messages/4
File "lib/broadway/topology/processor_stage.ex", line 65, in anonymous fn/2 in Broadway.Topology.ProcessorStage.handle_events/3
File "/opt/app/deps/telemetry/src/telemetry.erl", line 320, in :telemetry.span/3
Arguments:
arg0: {:error, :too_many_attempts}
arg1: -576084594885863171
arg2: %{application: MyApp, error: nil, execution_context: %Commanded.Aggregates.ExecutionContext{command: %MyApp.UpdateBalances{...}}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in lib/commanded/commands/dispatcher.ex at telemetry_stop/3 and trace how dispatch/1 reaches it. Reproduce or inspect the reported arguments, especially {:error, :too_many_attempts}, and determine the expected telemetry stop path. Done means the reported dispatch flow no longer raises FunctionClauseError and relevant behavior is covered by the project's existing tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elixir
- Domain
- backend, observability
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100