# @highlight-run/node

## 3.12.15

### Patch Changes

- Updated dependencies [9d1fa42]
    - highlight.run@9.18.19

## 3.12.14

### Patch Changes

- Updated dependencies [491a594]
    - highlight.run@9.18.18

## 3.12.13

### Patch Changes

- Updated dependencies [3993134]
- Updated dependencies [2dcbae1]
    - highlight.run@9.18.17

## 3.12.12

### Patch Changes

- Updated dependencies [5fdfaba]
- Updated dependencies [5fdfaba]
- Updated dependencies [5fdfaba]
    - highlight.run@9.18.16

## 3.12.11

### Patch Changes

- Updated dependencies [49b32d8]
    - highlight.run@9.18.15

## 3.12.10

### Patch Changes

- Updated dependencies [c901c22]
- Updated dependencies [c901c22]
- Updated dependencies [c901c22]
    - highlight.run@9.18.14

## 3.12.9

### Patch Changes

- Updated dependencies [3f513ca]
    - highlight.run@9.18.13

## 3.12.8

### Patch Changes

- Updated dependencies [575ac87]
- Updated dependencies [575ac87]
    - highlight.run@9.18.12

## 3.12.7

### Patch Changes

- Updated dependencies [24ff099]
    - highlight.run@9.18.11

## 3.12.6

### Patch Changes

- Updated dependencies [b22881f]
- Updated dependencies [bcbb6f7]
- Updated dependencies [188357c]
- Updated dependencies [18ff47a]
    - highlight.run@9.18.10

## 3.12.5

### Patch Changes

- Updated dependencies [0e87afd]
- Updated dependencies [d349bc2]
- Updated dependencies [0e87afd]
    - highlight.run@9.18.9

## 3.12.4

### Patch Changes

- Updated dependencies [af513d3]
    - highlight.run@9.18.8

## 3.12.3

### Patch Changes

- Updated dependencies [57fa91d]
    - highlight.run@9.18.7

## 3.12.2

### Patch Changes

- 6ab4f09: fix middleware handler for express.js span durations
- b833e61: add disablePgInstrumentationAttributes setting for turning of pg attribute serialization

## 3.12.1

### Patch Changes

- f54bce0: ensure @highlight-run/node serverless handlers flush trace

## 3.12.0

### Minor Changes

- 31dc610: configure Node.js OTLPLogExporter and OTLPMetricExporter

### Patch Changes

- 31dc610: fix @highlight-run/node traceparent parent_span_id propagation

## 3.11.1

### Patch Changes

- c647d66: fix node-fetch import breaking edge runtime compatibility
- c647d66: update @highlight-run/node dependency on @prisma/instrumentation

## 3.11.0

### Minor Changes

- ed9cb32: disable noisy fs and http instrumentation by default
- e89e41c: add Prisma autoinstrumentation

## 3.10.1

### Patch Changes

- f06a274: ensure W3CTraceContext is propagated to distributed services

## 3.10.0

### Minor Changes

- 236afe0: support span naming in runwithheaders and set a default span name for route middlewares

## 3.9.7

### Patch Changes

- b02cad4: fix object.hasown reference for node 14

## 3.9.6

### Patch Changes

- d3ba444: fix opentelemetry-sdk-workers breaking with otlp-exporter-base 0.54
- 21f3cfb: fix @highlight-run/next sdk breaking HMR with turbopack next.js 14 due to require-in-the-middle bundling

## 3.9.5

### Patch Changes

- 7becd8b: fix @highlight-run/next sdk breaking HMR with turbopack next.js 14

## 3.9.4

### Patch Changes

- e6d5ad2: ensure compatibility with node.js 14 when referencing Headers type

## 3.9.3

### Patch Changes

- 5045b23: fix opentelemetry warning from missing dependencies

## 3.9.2

### Patch Changes

- 1e21c52: report telemetry attributes on node.js sdks

## 3.9.1

### Patch Changes

- 2339697: update opentelemetry dependencies

## 3.9.0

### Minor Changes

- ec466b8b2: refactor highlight-run-with-headers to highlight-ctx
- ec466b8b2: fix nestjs trace context propagation and update node sdk span names

### Patch Changes

- ec466b8b2: update node sdk to export in larger batches

## 3.8.3

### Patch Changes

- e14192fa4: fixes opentelemetry http instrumentation breaking nestjs

## 3.8.2

### Patch Changes

- dded74108: Enabling automatic propagation. It won't work until open-telemetry/opentelemetry-js-contrib PR #1951 goes through.

## 3.8.1

### Patch Changes

- 240143f9d: Resolve node sdk issues from an OTel package version bump

## 3.8.0

### Minor Changes

- c4eb0a17f: allow customizing log attribute serialization

### Patch Changes

- 5fdb420c4: Adding highlightMiddleware and cookie tracking to Next.js. Minor cleanup for Remix and Node.

## 3.7.3

### Patch Changes

- f6308c0ac: fix app/page router blocking on errors in some cases

## 3.7.2

### Patch Changes

- 59952b854: report exception.cause for js error objects with a cause attribute

## 3.7.1

### Patch Changes

- 790c83782: fix incorrect publish with internal workspace references

## 3.7.0

### Minor Changes

- e75a480dc: Exposing Node SDK internals and using them to better instrument Next.js API wrappers
- e75a480dc: Enable tracing

## 3.6.6

### Patch Changes

- 352641cf7: fix incorrect reporting of log level for pino
- 8f0b8de6b: Repairing a circular dependency in @highlight-run/node and a bad export from @highlight-run/next's Edge runtime support
- 46ed85c91: Support environment attribute to be passed in natively.

## 3.6.5

### Patch Changes

- bd5021a6c: remove @highlight-run/node dependency on highlight.run for types
- 2fce77c13: fix opentelemetry auto instrumentation in next.js, update opentelemetry dependencies

## 3.6.4

### Patch Changes

- 7c35f7d78: ensure header parsing is compatible with IncomingHTTPHeaders and Headers types
- Updated dependencies [84110aca1]
- Updated dependencies [c1773fa66]
    - highlight.run@8.3.0

## 3.6.3

### Patch Changes

- f966390c1: ensure compatibility for JS SDKs in ES and CJS environments
- 66b94f3f7: change serialization for node to avoid reporting objects as the message
- Updated dependencies [f966390c1]
    - highlight.run@8.2.3

## 3.6.2

### Patch Changes

- e3590078e: fix @highlight-run/node crashing due to encoding not being polyfilled
- 8e91dbe55: allow arbitrarily waiting for flush to wait for logs to be sent to highlight
- Updated dependencies [b6172b0da]
    - highlight.run@8.2.2

## 3.6.1

### Patch Changes

- 9ad2c786c: Remove circular dependency

## 3.6.0

### Minor Changes

- 7355c73f8: Support highlight request context globally to associate async console logs / errors with highlight sessions.

### Patch Changes

- 747903c88: Repaired a bad resource merge to persist Highlight session data across all spans.
- d452bb1b6: refactor types for highlight session context

## 3.5.3

### Patch Changes

- Updated dependencies [7c20f8c44]
    - highlight.run@8.2.1

## 3.5.2

### Patch Changes

- 4f535a839: ensure that console methods record structured attributes on logs
- 107f2fbd2: Npm publish cleanup. Export only dist folder.
- 4f535a839: make object stringification more robust to prevent recursion errors
- 4f535a839: bundle all dependencies into @highlight-run/node
- 4f535a839: ensure opentelemetry export does not time out
- Updated dependencies [8142463b5]
    - highlight.run@8.2.0

## 3.5.1

### Patch Changes

- Updated dependencies [7b931c336]
- Updated dependencies [b03039b6b]
- Updated dependencies [be3f51f45]
    - highlight.run@8.1.0

## 3.5.0

### Minor Changes

- 4607eae20: fix es module build for @highlight-run/node by switching to rollup for proper opentelemetry dependency bundling

### Patch Changes

- Updated dependencies [e7fa17ac7]
    - highlight.run@8.0.1

## 3.4.4

### Patch Changes

- Updated dependencies [4f4e5aa4f]
    - highlight.run@8.0.0

## 3.4.3

### Patch Changes

- 683330896: update opentelemetry dependencies to remove jaeger
- Updated dependencies [e264f6a61]
    - highlight.run@7.6.0

## 1.3.0

### Minor Changes

- fix workspace:\* dependencies

### Patch Changes

- Updated dependencies
    - highlight.run@4.6.0

## 2.0.0

### Major Changes

- require project id for H.init
- support for errors without associated sessions/requests

## 2.4.0

### Minor Changes

- Adds ability to record `console` methods.

## 2.4.2

### Minor Changes

- Removes dependence on `apollo` related packages to decrease bundle size and fix types checks.

## 2.4.3

### Minor Changes

- Exposes internal `log` function for writing logs to highlight.

## 2.5.2

### Minor Changes

- Ensures `flush` method will send opentelemetry spans to highlight.

## 3.0.0

### Major Changes

- Entirely replaces highlight graphql calls with opentelemetry.
- Removes dependency on graphql libraries.

## 3.1.0

### Minor Changes

- Adds a `Handlers.serverlessFunction` for use as a error wrapper in AWS Lambda.
- Adds a `H.stop()` method for shutting down the SDK and flushing unsent data.

## 3.1.2

### Minor Changes

- Removing `package.json` hoisting limits to repair missing dependencies.

## 3.1.8

### Minor Changes

- Add `serviceName` and `serviceVersion` as optional parameters to `NodeOptions`

## 3.1.9

### Patch Changes

- Updates opentelemetry dependencies to the next patch version.

## 3.1.10

### Patch Changes

- Ensures `console.log(...args)`-type arguments are serialized correctly.

## 3.2.0

### Minor Changes

- Add `metadata` option for `consumeError` and derivative functions.

## 3.3.0

### Minor Changes

- Disables node fs instrumentation by default, can by enabled by passing `enableFsInstrumentation: true` to client option.

## 3.3.1

### Minor Changes

- Ensure console serialization works with `BigInteger` and other unserializeable types.

## 3.3.2

### Patch Changes

- Tune settings of opentelemetry SDK to reduce memory usage.
- Enable GZIP compression of exported data.

## 3.4.0

### Minor Changes

- Added `Highlight.waitForFlush` and `H.consumeAndFlush` to keep serverless functions alive while flushing

## 3.4.1

### Patch Changes

- Excised `@protobufjs/inquire` from the build to eliminate console warnings
- Included `@opentelemetry/*` packages in build to bundle the `ansi-color` patch and create a more deterministic build.

## 3.4.2

### Patch Changes

- Downgrade `@opentelemetry/api` to avoid peer dependency issue. Also, it turns out that v1.4.1 is identical to v1.6.0 due to a revert.
