Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 9, 2023
1 parent 06aa31a commit 73625e5
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 38 deletions.
37 changes: 0 additions & 37 deletions .changeset/moody-bobcats-travel.md

This file was deleted.

39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# @seek/logger

## 6.2.0

### Minor Changes

- Omit request headers ([#92](https://github.com/seek-oss/logger/pull/92))

`@seek/logger` now omits the following properties from `headers` and `req.headers` by default:

- `x-envoy-attempt-count`
- `x-envoy-decorator-operation`
- `x-envoy-expected-rq-timeout-ms`
- `x-envoy-external-address`
- `x-envoy-internal`
- `x-envoy-peer-metadata`
- `x-envoy-peer-metadata-id`
- `x-envoy-upstream-service-time`

If you would like to opt out of this behaviours, you can provide an empty list or your own list of request headers to `omitHeaderNames`:

```diff
const logger = createLogger({
name: 'my-app',
+ omitHeaderNames: ['dnt', 'sec-fetch-dest'],
});
```

You can also extend the default list like so:

```diff
- import createLogger from '@seek/logger';
+ import createLogger, { DEFAULT_OMIT_HEADER_NAMES } from '@seek/logger';

const logger = createLogger({
name: 'my-app',
+ omitHeaderNames: [...DEFAULT_OMIT_HEADER_NAMES, 'dnt', 'sec-fetch-dest']
});
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@seek/logger",
"version": "6.1.1",
"version": "6.2.0",
"private": false,
"description": "Standardized logging",
"homepage": "https://github.com/seek-oss/logger#readme",
Expand Down

0 comments on commit 73625e5

Please sign in to comment.