Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

feat: hapi 17 tracing support#710

Merged
kjin merged 3 commits intogoogleapis:masterfrom
kjin:plugin-types-ex
Apr 3, 2018
Merged

feat: hapi 17 tracing support#710
kjin merged 3 commits intogoogleapis:masterfrom
kjin:plugin-types-ex

Conversation

@kjin
Copy link
Copy Markdown
Contributor

@kjin kjin commented Apr 2, 2018

This PR adds support for tracing Hapi 17. GCLOUD_TRACE_NEW_CONTEXT must be set.

Fixes #601

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 2, 2018
@kjin kjin force-pushed the plugin-types-ex branch 3 times, most recently from 092bb6b to 4ad8993 Compare April 2, 2018 16:56
@kjin kjin force-pushed the plugin-types-ex branch 2 times, most recently from 1ccaba2 to 96d9e80 Compare April 3, 2018 01:03
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 3, 2018

Codecov Report

Merging #710 into master will decrease coverage by 0.09%.
The diff coverage is 91.3%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
src/plugins/plugin-hapi.ts 88.67% <91.3%> (-2.82%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b646611...20cb632. Read the comment docs.

@kjin kjin force-pushed the plugin-types-ex branch from 96d9e80 to 9e4987d Compare April 3, 2018 01:21
@kjin kjin force-pushed the plugin-types-ex branch from 9e4987d to 5a298eb Compare April 3, 2018 01:22
Comment thread 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.

Comment thread 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.

This comment was marked as spam.

This comment was marked as spam.

@kjin kjin force-pushed the plugin-types-ex branch from 3f16297 to ddbcc13 Compare April 3, 2018 17:42
@kjin kjin merged commit 028032f into googleapis:master Apr 3, 2018
@BenCrux
Copy link
Copy Markdown

BenCrux commented Apr 3, 2018

This is great @kjin - any idea when this would become a version we'd be able to pull down and use?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants