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

fix: None does not implement middleware when there are no middlewares #1766

Conversation

mshebeko-twist
Copy link
Contributor

@mshebeko-twist mshebeko-twist commented Apr 19, 2023

Description

When no middlewares are registered falcon-instrumentation will throw following exception:
TypeError: None does not implement the middleware interface

Type of change

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

How Has This Been Tested?

We are running a Hug framework that built on top of Falcon.
Its enough to build a basic api without middlewares and instrument it with falcon instrumentation to encounter this error.
Application will exit immediately without this fix. As a workaround any middleware can be registered.

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@mshebeko-twist mshebeko-twist requested a review from a team April 19, 2023 07:30
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Apr 19, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@srikanthccv srikanthccv merged commit 2d4e6c9 into open-telemetry:main Apr 19, 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.

4 participants