Releases: googleapis/cloud-trace-nodejs
Releases · googleapis/cloud-trace-nodejs
v8.0.0
8.0.0 (2024-02-07)
⚠ BREAKING CHANGES
- upgrade to Node 14 (#1517)
Features
Bug Fixes
- Assert oldMethod existence, and pin typescript version (#1549) (66a39fa)
- deps: Update dependency require-in-the-middle to v6 (#1483) (ddd4bbb)
- deps: Update dependency require-in-the-middle to v7 (#1494) (58e7821)
- Skip flaky test (#1495) (bb03060), closes #1334
Miscellaneous Chores
v7.1.2
v7.1.1
v7.1.0
v7.0.0
7.0.0 (2022-08-10)
⚠ BREAKING CHANGES
- update library to use Node 12 (#1442)
- drop support for node.js 8.x (#1239)
- 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, disable any plugins that patch modules that create outgoing RPCs (gRPC, HTTP client and database calls). (Use of the custom span APITracer#createChildSpan
is not recommended in this configuration -- useRootSpan#createChildSpan
instead.) - This change modifies/removes APIs that assume a particular format for trace context headers; in other words, any place where the user would deal with a stringified trace context, they would now deal with a TraceContext object instead. This affects three APIs:
getResponseTraceContext
(input/output has changed from string to TraceContext),createRootSpan
(input RootSpanOptions now accepts a TraceContext instead of a string in the traceContext field), andSpan#getTraceContext
(output has changed from string to TraceContext). - contextHeaderBehavior and ignoreContextHeader now act independently of one another. 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.
- upgrade engines field to >=8.10.0 (#1011)
TraceAgent
has been renamed toTracer
. In plugins,Patch
has been renamedMonkeypatch
, andPatch
is nowMonkeypatch|Intercept
(this is a rename ofInstrumentation
). There are no user-visible JS changes.- The change in distributed trace context propagation across gRPC is not backwards-compatible. In other words, distributed tracing will not work between two Node instances communicating using gRPC with v2 and v3 of the Trace Agent, respectively.
- This commit drops support for Node 4 and 9.
Features
- add config.disableUntracedModulesWarn (#1070) (f688e33)
- add contextHeaderBehavior option (#900) (199cb42)
- add getProjectId and getCurrentRootSpan (#782) (f7ae770)
- add ignoreMethods option (#920) (67ddb8f)
- add options to set the cls mechanism to async-hooks or async-listener (#741) (f34aac5)
- add rootSpan.createChildSpan and change none CLS semantics (#731) (d0009ff)
- add rootSpanNameOverride option (#826) (a03e7b2)
- add singular cls option (#748) (000643f)
- allow "disabling" cls, and relax requirements for creating root spans (#728) (5d000e9)
- allow timestamps to be passed to endSpan (#747) (319642a)
- allow users to specify a trace policy impl (#1027) (b37aa3d)
- downgrade soft/hard span limit logs to warn level (#1269) (3f55458)
- emit an error log on potential memory leak scenario (#870) (0072e5f)
- expand version range for pg to 7.x (#701) (c8c5bfc)
- hapi 17 tracing support (#710) (028032f)
- implement (de)serialization of binary trace context (#812) (f96c827)
- move ts target to es2018 from es2016 (#1280) (b33df71)
- rename TraceAgent/TraceApi to Tracer (#815) (dde86d3)
- support @hapi/hapi (#1108) (d545e93)
- support child spans with tail latencies (#913) (d1de959)
- support context propagation in bluebird (#872) (29bb15c)
- support knex 0.16 (#940) (0b404a1)
- support mongodb-core@3 (#760) (d227b6d)
- support restify 8 (#1250) (f52fa4d)
- support restify@7 (#917) (4b74f5a)
- support tracing for untranspiled async/await in Node 8+ (#775) (30d0529)
- support user-specified context header propagation (#1029) (28ecb16)
- use small HTTP dependency (#858) (210dc3f)
- use source-map-support wrapCallSite to apply source maps to call stacks (#1015) (c558455)
- use well-known format for propagating trace context thru grpc (#814) (63b13ca)
Bug Fixes
- add build/src/cls in output files (#736) (49a900a)
- add log level to logger prefix (#875) (c19850d)
- add support for pg 7 changes (#702) (f070636)
- adjust async_hooks cls behavior (#734) (79ab435)
- allow non-objects for plugins to disable automatic tracing (#720) (068260c)
- allow sampling rate to be less than 1 (#896) ([5220f9b](5220f9be8a24e...