Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove extraneous span.setStatus() following span.end() #2697

Merged
merged 4 commits into from
Jul 28, 2023

Conversation

trevor-scheer
Copy link
Member

Fixes #2652

The call to span.setStatus() here does nothing since the span has already ended in the finally immediately above. This ends up being a noop but does trigger a warning log to the console as noted in the issue.

I hoped to capture this log in a test by mocking console.warn but otel blows up when I do that for some reason.

Anyway, the lack of changes in any tests at least confirms that we already didn't expect this code was doing anything.

@trevor-scheer trevor-scheer requested a review from a team as a code owner July 27, 2023 23:21
@changeset-bot
Copy link

changeset-bot bot commented Jul 27, 2023

🦋 Changeset detected

Latest commit: 0bcc4f1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@apollo/gateway Patch
@apollo/federation-internals Patch
@apollo/composition Patch
@apollo/query-planner Patch
@apollo/query-graphs Patch
@apollo/subgraph Patch
apollo-federation-integration-testsuite Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Jul 27, 2023

Deploy Preview for apollo-federation-docs canceled.

Name Link
🔨 Latest commit 0bcc4f1
🔍 Latest deploy log https://app.netlify.com/sites/apollo-federation-docs/deploys/64c30958091b0e000888fd0a

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 27, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@trevor-scheer trevor-scheer merged commit 06dbdc2 into main Jul 28, 2023
4 checks passed
@trevor-scheer trevor-scheer deleted the trevor/fix-2652 branch July 28, 2023 15:01
This was referenced Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OTEL error "Can not execute the operation on ended Span"
2 participants