Skip to content

Comments

Remove double close calls on spans#107

Merged
tombruijn merged 2 commits intomainfrom
update-plug-dep
Mar 24, 2025
Merged

Remove double close calls on spans#107
tombruijn merged 2 commits intomainfrom
update-plug-dep

Conversation

@tombruijn
Copy link
Member

@tombruijn tombruijn commented Mar 24, 2025

Update appsignal_plug dependency

Update the dependency so all new packages use the fix linked below that ensures that spans created by our plug package aren't trying to close twice.

See also PR appsignal/appsignal-elixir-plug#51 and PR appsignal/appsignal-elixir#979

Remove double close calls on spans

The tests failed because the spans were closed twice. Remove the close span call in this package and rely on the Appsignal.instrument helper's behavior to close a span if an error occurred in the instrumented function.

See also PR appsignal/appsignal-elixir-plug#51 and PR appsignal/appsignal-elixir#979

Update the dependency so all new packages use the fix linked below that
ensures that spans created by our plug package aren't trying to close
twice.

See also PR appsignal/appsignal-elixir-plug#51
and PR appsignal/appsignal-elixir#979
@tombruijn tombruijn added the bug Confirmed and unconfirmed bugs reported by us and customers. label Mar 24, 2025
@tombruijn tombruijn self-assigned this Mar 24, 2025
The tests failed because the spans were closed twice.
Remove the close span call in this package and rely on the
`Appsignal.instrument` helper's behavior to close a span if an error
occurred in the instrumented function.

See also PR appsignal/appsignal-elixir-plug#51
and PR appsignal/appsignal-elixir#979
@tombruijn tombruijn changed the title Update appsignal_plug dependency Remove double close calls on spans Mar 24, 2025
@tombruijn tombruijn merged commit f9ecc6f into main Mar 24, 2025
16 checks passed
@tombruijn tombruijn deleted the update-plug-dep branch March 24, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Confirmed and unconfirmed bugs reported by us and customers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants