Skip to content

Reorder on_finish call order to correctly instrument all tornado work done during a request - #499

Merged
codeboten merged 8 commits into
open-telemetry:mainfrom
pitabwire:main
Jun 7, 2021
Merged

codeboten merged 8 commits into
open-telemetry:mainfrom
pitabwire:main

Conversation

@pitabwire

@pitabwire pitabwire commented May 16, 2021 •

Copy link
Copy Markdown
Contributor

Description

This PR ensures trace processing is closed only after tornado's on_finish method is called

Fixes #495

Type of change

  • [*] Bug fix (non-breaking change which fixes an issue)

@pitabwire
pitabwire requested review from a team, codeboten and ocelotl and removed request for a team May 16, 2021 08:45
@linux-foundation-easycla

linux-foundation-easycla Bot commented May 16, 2021 •

Copy link
Copy Markdown

CLA Signed

The committers are authorized under a signed CLA.

@codeboten codeboten left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @pitabwire, thanks for the PR. Is it possible to add a test to capture the issue being fixed here?

Also please add an entry to CHANGELOG.md.

@ocelotl ocelotl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat 😎

Yes, please add a test, as requested by @codeboten ✌️

@pitabwire
pitabwire requested review from codeboten and ocelotl June 2, 2021 14:07

@ocelotl ocelotl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice ✌️

@lzchen

lzchen commented Jun 4, 2021

Copy link
Copy Markdown
Contributor

@pitabwire
Please fix the build errors and then we can merge this in!

@pitabwire
pitabwire requested a review from lzchen June 7, 2021 12:18
@codeboten
codeboten merged commit fe4e2d4 into open-telemetry:main Jun 7, 2021
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.

Tornado instrumentation closes spans before on_finish is completed.

5 participants