Skip to content

Add Starlette / FastAPI middleware#694

Merged
basepi merged 14 commits into
elastic:masterfrom
Sparkycz:fastapi
Jan 23, 2020
Merged

Add Starlette / FastAPI middleware#694
basepi merged 14 commits into
elastic:masterfrom
Sparkycz:fastapi

Conversation

@Sparkycz

@Sparkycz Sparkycz commented Jan 20, 2020

Copy link
Copy Markdown
Contributor

Closes #686

Comment thread elasticapm/contrib/starlette/__init__.py Outdated
Comment thread elasticapm/contrib/starlette/__init__.py Outdated
Comment thread elasticapm/contrib/starlette/__init__.py
Comment thread elasticapm/contrib/starlette/__init__.py Outdated
@Sparkycz Sparkycz force-pushed the fastapi branch 3 times, most recently from fd5aee0 to f0f9fff Compare January 20, 2020 17:29

@basepi basepi 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.

This looks really excellent at first glance. I'll be reviewing it in more detail, but before I do, can you please put the starlette tests (and the aiohttp tests you renamed) under tests/contrib/asyncio please? That directory is automatically excluded from the test matrix for versions of cpython and pypy that don't support the async def pattern.

We'll also need you to sign the CLA.

Once we get that done I'll get the tests running.

Comment thread Makefile Outdated

@basepi basepi 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.

Couple of changes independent of anything we find in the tests.

Comment thread elasticapm/contrib/starlette/utils.py
Comment thread elasticapm/contrib/starlette/__init__.py Outdated
Comment thread elasticapm/contrib/starlette/__init__.py Outdated
Comment thread tests/contrib/asyncio/starlette_tests.py Outdated
@basepi

basepi commented Jan 22, 2020

Copy link
Copy Markdown
Contributor

jenkins run the tests please

1 similar comment
@kuisathaverat

Copy link
Copy Markdown
Contributor

jenkins run the tests please

@basepi

basepi commented Jan 22, 2020

Copy link
Copy Markdown
Contributor

@Sparkycz Please remember to sign the CLA. I've noticed that your commits are not associating with your Github account. I recommend adding your commit email ([email protected]) to your Github account, or you may have to sign the CLA twice. (I'm not 100% sure how that validation operates)

Alternatively you could rebase the commits with a Github-associated email.

Without a signed CLA we unfortunately will not be able to accept this excellent contribution.

@Sparkycz

Copy link
Copy Markdown
Contributor Author

Rebased all commits due to CLA only..

Comment thread elasticapm/contrib/starlette/utils.py
@Sparkycz

Copy link
Copy Markdown
Contributor Author

Should I squash all the commits to one?

@basepi

basepi commented Jan 23, 2020

Copy link
Copy Markdown
Contributor

jenkins run the tests please

@basepi

basepi commented Jan 23, 2020

Copy link
Copy Markdown
Contributor

No, we use squash and merge so it should be fine.

@basepi basepi 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.

Thank you again for your work on this, @Sparkycz! As soon as the tests pass I'll get this merged. I'm going to open a second PR for documentation.

@basepi basepi merged commit 6cffb0e into elastic:master Jan 23, 2020
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.

Add support for FastAPI

4 participants