Skip to content

feat: add getDefaultMetadataForTracing#388

Merged
kjin merged 3 commits intogoogleapis:masterfrom
kjin:winston-287
Sep 19, 2019
Merged

feat: add getDefaultMetadataForTracing#388
kjin merged 3 commits intogoogleapis:masterfrom
kjin:winston-287

Conversation

@kjin
Copy link
Copy Markdown
Contributor

@kjin kjin commented Sep 10, 2019

Fixes #287

Looking for API feedback before I write tests.

cc/ @googleapis/node-team

@kjin kjin requested a review from a team September 10, 2019 01:04
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 10, 2019
Comment thread src/default-metadata.ts
const enableThunkAgent = !!(
agent &&
agent.getCurrentContextId &&
agent.getWriterProjectId
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 feels weird to me because it establishes some kind of peer dependency on a particular trace-agent version

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 19, 2019

Codecov Report

Merging #388 into master will increase coverage by 2.18%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #388      +/-   ##
==========================================
+ Coverage   92.07%   94.26%   +2.18%     
==========================================
  Files           4        5       +1     
  Lines         101      122      +21     
  Branches       26       30       +4     
==========================================
+ Hits           93      115      +22     
  Misses          4        4              
+ Partials        4        3       -1
Impacted Files Coverage Δ
src/default-metadata.ts 100% <100%> (ø)
src/index.ts 87.5% <100%> (+1.78%) ⬆️
src/common.ts 96.82% <0%> (+1.58%) ⬆️

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 134be02...323ba16. Read the comment docs.

@kjin kjin requested review from a team and soldair September 19, 2019 21:04
@kjin
Copy link
Copy Markdown
Contributor Author

kjin commented Sep 19, 2019

@googleapis/node-team I've updated this PR to include the test. PTAL

@kjin kjin merged commit f6bd9dd into googleapis:master Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trace agent doesn't create new trace id for each request

4 participants