-
Notifications
You must be signed in to change notification settings - Fork 98
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
feat: hapi 17 tracing support #710
Conversation
092bb6b
to
4ad8993
Compare
1ccaba2
to
96d9e80
Compare
Codecov Report
@@ Coverage Diff @@
## master #710 +/- ##
=========================================
- Coverage 90.78% 90.68% -0.1%
=========================================
Files 29 29
Lines 1486 1492 +6
Branches 293 294 +1
=========================================
+ Hits 1349 1353 +4
- Misses 57 59 +2
Partials 80 80
Continue to review full report at Codecov.
|
src/plugins/plugin-hapi.ts
Outdated
type Hapi16Module = typeof hapi_16; | ||
type Hapi17RequestExecutePrivate = { | ||
(this: hapi_17.Request): Promise<void>; | ||
[ORIGINAL]?: Hapi17RequestExecutePrivate; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
src/plugins/plugin-hapi.ts
Outdated
{ | ||
versions: '8 - 16', | ||
patch(hapi, api) { | ||
function createMiddleware(): hapi_16.ServerExtRequestHandler { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This is great @kjin - any idea when this would become a version we'd be able to pull down and use? |
This PR adds support for tracing Hapi 17.
GCLOUD_TRACE_NEW_CONTEXT
must be set.Fixes #601