Releases: googleapis/cloud-trace-nodejs
v4.1.1
v4.1.0
In this release, a log that is emitted by the Trace Agent when it's not the first required module has been downgraded from error-level to warn-level, and a new boolean config option disableUntracedModulesWarning
disables this message entirely.
Commits
f688e33 feat: add config.disableUntracedModulesWarn (#1070)
7cf423c test: upgrade grpc test fixture to 1.22.2 (#1071)
8bdd946 fix: warn if tracing might not work instead of err (#1068)
e1d0ed9 test: fix type issue in mongoose test (#1067)
8bbd9b5 build: use synth templates and kokoro config (#1062)
3cfa7a0 test: add smoke test for app sample (#1061)
f3e81d3 test: don't timeout no-target http test if error not emitted (#1060)
d40fee2 build: mark some new tests as integration tests (#1059)
8a0ee15 build: fix npm run get-plugin-types
on windows (#1057)
v4.0.1
This release fixes a bug introduced in v4.0.0 where authentication credentials from the user configuration object wouldn't be read (#1048).
Commits
e3f763c refactor: use the shared prettier config (#1055)
0d954a1 chore: add github issue templates (#1054)
8930df3 fix: copy credentials in internal config (#1052)
v4.0.0
This major release makes the following changes to the package:
BREAKING CHANGES
- Node 6 is no longer supported.
- Changes in config options: Users that use the following config options may see changes:
- Config options
contextHeaderBehavior
andignoreContextHeader
now act independently of one another, andignoreContextHeader
is no longer deprecated. The former controls how a sampling decision is made based on incoming context header, and the latter controls whether trace context is propagated to the current request. (#1027) - When initialized with
clsMechanism: 'none'
, callingTracer#createChildSpan
will potentially result in a warning, as these spans are considered to be uncorrelated. To ensure that warnings do not occur during automatic tracing, disable any plugins that patch modules that create outgoing RPCs. (Use of the custom span APITracer#createChildSpan
is not recommended in this configuration -- useRootSpan#createChildSpan
instead.) (#1033)
- Config options
- Changes in the custom span API: APIs that assume a particular format for trace context headers have been modified or removed; in other words, any place where the user would deal with a stringified trace context, they would now deal with a TraceContext object instead. (#1029) This affects three APIs:
Tracer#getResponseTraceContext
(input/output has changed from string to TraceContext)Tracer#createRootSpan
(input RootSpanOptions now accepts a TraceContext instead of a string in the traceContext field)Span#getTraceContext
(output has changed from string to TraceContext)
If you do not use the custom span API or any of the config options above, there should be no breaking changes.
New Features
- Call stacks on traces now show pre-transpiled file/line numbers based on source maps. (#1015)
- Arbitrary tracing policy is now supported: the new config option
tracePolicy
allows users to write their own filters for traces, instead of using the built-insamplingRate
,contextHeaderBehavior
,ignoreMethods
, andignoreUrls
. (#1027) - Arbitrary HTTP trace header propagation is now supported: the new config option
propagation
takes in an OpenCensusPropagation
object. It defaults to the Stackdriver Trace v1 header format exported by the package@opencensus/propagation-stackdriver
; other OpenCensus propagation packages should work as drop-in replacements. (#1029) - Every trace object now contains a trace and span ID, even if they were not sampled. (#1033)
Bug Fixes
- Requests to ignored URLs / with ignored methods no longer affect the frequency of sampled requests (they used to be factored in when sampling, causing un-filtered requests to potentially get sampled out erroneously). (#1018)
Commits
6b427ab fix!: always assign a trace ID to each request (#1033)
23a990a fix(deps): update dependency @google-cloud/common to v2 (#1038)
1e5278b chore(deps): update dependency teeny-request to v4 (#1042)
f6c080d chore(deps): update dependency grpc to v1.21.1 (#1037)
9c38663 chore(deps): update dependency typescript to ~3.5.0 (#1039)
1b18254 chore(deps): update dependency js-green-licenses to v1 (#1041)
8a7588c chore(deps): update dependency axios to ^0.19.0 (#1040)
8383ae2 chore: add node 12 ci job (#1002)
6838cf7 refactor: drop usage of pify (#1034)
2b0a15a chore: drop dependency on jshint (#1035)
d3d0ed9 chore: remove bump and changelog commands (#1036)
87e4d26 refactor: upgrade to gts@1 (#1031)
4c79b4f fix(deps): update dependency @opencensus/propagation-stackdriver to v0.0.13 (#1030)
28ecb16 feat!: support user-specified context header propagation (#1029)
c63bb14 fix(deps): update dependency @google-cloud/datastore to v4 (#1028)
b37aa3d feat!: allow users to specify a trace policy impl (#1027)
e956d45 doc: fix grammar (#1026)
e672b98 refactor: explicitly assign every internal config field (#1021)
244633e fix(deps): update dependency @google-cloud/common to v1 (#1023)
9d3b9e5 fix(deps): update dependency gcp-metadata to v2 (#1022)
1e5c9be chore: stop testing on node 6 in ci (#1024)
42a18a5 test: stop querying google.com (#1020)
9de51ea chore(deps): update dependency standard-version to v6 (#1019)
1832473 fix: Prevent filtered traces from biasing the sample rate (#1018)
2cbf1c2 test: test source map support for stack traces (#1016)
c558455 feat: use source-map-support wrapCallSite to apply source maps to call stacks (#1015)
b06a5bb chore(deps): update dependency grpc to v1.20.3 (#1014)
6b7f923 chore: fix code coverage, drop ncp (#1013)
b6abf76 chore(deps): update dependency retry-axios to v1 (#1003)
98f95e3 build!: upgrade engines field to >=8.10.0 (#1011)
v3.6.1
This release fixes a few bugs:
- Awaited Mongoose queries are not traced (#1000)
- The HTTP tracing plugin throws if an
Expect
header exists for a request, but isn't capitalized exactly that way
Commits
7becd25 chore: set new registry endpoint for publishing (#1010)
fb6d8c3 doc: remove the hash from the ignoreUrls in docs (#1009)
deb2a44 fix: support tracing awaited mongoose queries (#1007)
a60b623 update to .nycrc with --all enabled (#1008)
fbdcb0c chore(deps): update dependency grpc to v1.20.2 (#1006)
a791878 chore(deps): update dependency @types/nock to v10 (#1004)
6a95bbe chore(deps): update dependency grpc to v1.20.0 (#998)
2629cd0 chore(deps): update dependency nyc to v14 (#997)
670ac64 fix(deps): update dependency @google-cloud/common to ^0.32.0 (#993)
20feb58 chore(deps): update dependency @grpc/proto-loader to ^0.5.0 (#996)
50421a5 fix: don't let trace context injection throw (#989)
fae65bd fix(deps): update dependency semver to v6
f366306 chore(deps): update dependency @types/tmp to v0.1.0 (#992)
4e2d791 chore(deps): update dependency typescript to ~3.4.0 (#991)
a2456ee chore(deps): update dependency tmp to v0.1.0 (#987)
5900847 fix(deps): update dependency hard-rejection to v2 (#985)
8abf8c8 fix(deps): update dependency require-in-the-middle to v4 (#984)
9d3b937 chore(deps): update dependency grpc to v1.19.0 (#982)
6407e2a doc: add warning for knex database.raw (#981)
v3.6.0
This release makes the following changes:
- Tracing support for bluebird Promises has been added. Since Knex-specific tracing patches were being applied because it was using bluebird, the Knex patch has been removed. We don't expect Knex users to observe significant changes.
- Child spans can now extend longer than their parents.
Commits
6148c71 chore(deps): update dependency retry-axios to ^0.5.0 (#979)
ea9cb4b fix(deps): update dependency gcp-metadata to v1 (#975)
29bb15c feat: support context propagation in bluebird (#872)
990bfe0 chore(deps): update dependency mocha to v6 (#976)
3259d8d chore(deps): update dependency standard-version to v5 (#974)
82e4c24 test: don't make network request in gRPC context test (#970)
79e26a9 build: use linkinator for docs test (#972)
fccfd92 docs: update links in contrib guide (#973)
583b5a7 chore(deps): update dependency @types/tmp to v0.0.34 (#971)
ad1bdca test: stop requiring request (#969)
8be83d8 chore(deps): update dependency ts-node to v8 (#960)
6535193 test: test hapi tails (#968)
adc666e docs: note on using trace in bundled server code (#967)
5e3c896 build: create docs test npm scripts (#966)
7b84349 fix(deps): update dependency @google-cloud/common to ^0.31.0 (#963)
d1de959 feat: support child spans with tail latencies (#913)
f88cdd4 Automerge by dpebot
a821462 fix(deps): update dependency @google-cloud/datastore to v3 (#951)
95895a8 chore(deps): update dependency @grpc/proto-loader to ^0.4.0 (#957)
v3.5.2
This release fixes some instances where child spans corresponding to pg queries might not have an accurate measure of latency, and also addresses an issue where logs might show "undefined" as a plugin name.
Commits
6793b09 fix: output 'noPluginName'
in trace-api log messages where pluginName is undefined (#958)
2335934 fix(deps): update dependency @google-cloud/common to ^0.30.0 (#961)
8d3dea7 chore(deps): update dependency retry-axios to ^0.4.0 (#959)
1a20b7c fix: end child spans correctly in pg (#930)
bc98aa3 fix(deps): update dependency @google-cloud/common to ^0.29.0 (#947)
v3.5.1
This release fixes an issue where gRPC server method handlers wouldn't be traced if they were implemented using async
functions (#952).
Commits
8b8bd94 fix: wrap gRPC server async handlers (#954)
7102b01 doc: clarify custom root spans (#906)
53b0bb3 chore(deps): update dependency grpc to v1.18.0 (#953)
48a9d9c chore(deps): update dependency grpc to v1.17.0 (#945)
v3.5.0
This release expands the range of supported knex
versions to <=0.16, and fixes an issue where the IP label for incoming request traces could be misleading.
Commits
126bc75 fix: use req.ip in express and koa plugin (#944)
0b404a1 feat: support knex 0.16 (#940)
96863e7 fix(deps): update dependency @google-cloud/common to ^0.28.0 (#941)
32dcb55 test: cleanup grpc and http2 tests to minimize flakes (#938)
690ac0b chore: update renovate.json (#937)
4b7155d chore: update nyc and eslint configs (#936)
19153c7 chore: nyc ignore build/test by default (#934)
a0269f8 chore: update license file (#932)
v3.4.0
This release introduces a new ignoreMethods
configuration option (see #920), and extends the supported range of restify
to include version 7.
Commits
1d7c4dc fix: update teeny-request dep (#928)
2fa098d chore: update region tags (#927)
10bb78b fix(deps): update dependency @google-cloud/common to ^0.27.0 (#925)
73786eb docs(samples): updated samples code to use async await (#924)
2e48c0c chore: add node 11 ci job (#914)
67ddb8f feat: add ignoreMethods option (#920)
72b074d chore(deps): update dependency grpc to v1.16.1 (#923)
69c7813 doc: fix pg link (#921)
4b74f5a feat: support restify@7 (#917)
c66e9c3 chore(deps): update dependency gts to ^0.9.0 (#916)
55993f9 chore: add a sample app (#912)
82a55e8 chore: update eslintignore config (#915)