Skip to content

Test send_error_with_context closes span on raise#269

Merged
unflxw merged 1 commit into
mainfrom
test-send-error-span-closes-on-raise
Jun 10, 2026
Merged

Test send_error_with_context closes span on raise#269
unflxw merged 1 commit into
mainfrom
test-send-error-span-closes-on-raise

Conversation

@unflxw

@unflxw unflxw commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Port the regression test from appsignal/appsignal-nodejs#1449. Unlike the
Node.js helper, which had to be fixed to end the span in a finally
block, the Python helper already closes the error span when the
with block raises, since it builds on OpenTelemetry's
start_as_current_span context manager. This locks in that behaviour.

Port the regression test from appsignal-nodejs#1449. Unlike the
Node.js helper, which had to be fixed to end the span in a finally
block, the Python helper already closes the error span when the
`with` block raises, since it builds on OpenTelemetry's
start_as_current_span context manager. This locks in that behaviour.
@backlog-helper

backlog-helper Bot commented Jun 10, 2026

Copy link
Copy Markdown

Hi @unflxw,

We've found some issues with your Pull Request.

  • This Pull Request does not include a changeset. Add a changeset if the change impacts users and should be included in the changelog upon release. Read more about changesets.
    Ignore this rule by adding [skip changeset] to your Pull Request body. - (More info)
  • This Pull Request is missing reviewers. Either convert this Pull Request into a draft or ignore this rule by adding [skip review] to your Pull Request body. - (More info)

New issue guide | Backlog management | Rules | Feedback

@unflxw unflxw merged commit b077f61 into main Jun 10, 2026
11 checks passed
@unflxw unflxw deleted the test-send-error-span-closes-on-raise branch June 10, 2026 09:32
@tombruijn tombruijn added the chore A small task that takes a day or two at the most. label Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore A small task that takes a day or two at the most.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants