-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.x #3528
Conversation
… testing for contextManager=patch
…e new 14.5.0 minimum (#3540)
…t started (#3554) This also removes `| null` from the retval type of `.startTransaction()`. Co-authored-by: Trent Mick <[email protected]> Closes: #2429
…3555) This means no more 'elastic-apm-traceparent' header by default. Co-authored-by: Trent Mick <[email protected]> Closes: #3510
…xLength` usage (#3553) Closes: #2121 Closes: #2314 Co-authored-by: Trent Mick <[email protected]>
By making it async now users can `await` it to make sure any OTel MeterProvider shutdown has completed. Closes: #3222 Co-authored-by: Trent Mick <[email protected]>
The "patch" context manager was deprecated in v3.37.0 and it was long obsolete before that. Closes: #3529
This impacts using those properties directly on a Transaction, some calling forms for apm.startTransaction(...), and transaction.setType(...). These properties were deprecated in v3.23.0. Closes: #2357
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.28.0 to 2.28.1. - [Release notes](https://github.com/import-js/eslint-plugin-import/releases) - [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md) - [Commits](import-js/eslint-plugin-import@v2.28.0...v2.28.1) Bumps [prettier](https://github.com/prettier/prettier) from 3.0.1 to 3.0.2. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@3.0.1...3.0.2) Bumps [lambda-local](https://github.com/ashiina/lambda-local) from 2.0.3 to 2.1.2. - [Release notes](https://github.com/ashiina/lambda-local/releases) - [Changelog](https://github.com/ashiina/lambda-local/blob/develop/CHANGELOG.md) - [Commits](ashiina/lambda-local@release/2.0.3...release/2.1.2) Bumps [pg](https://github.com/brianc/node-postgres/tree/HEAD/packages/pg) from 8.11.2 to 8.11.3. - [Changelog](https://github.com/brianc/node-postgres/blob/master/CHANGELOG.md) - [Commits](https://github.com/brianc/node-postgres/commits/[email protected]/packages/pg) Bumps [azure-functions-core-tools](https://github.com/Azure/azure-functions-core-tools) from 4.0.5174 to 4.0.5274. - [Release notes](https://github.com/Azure/azure-functions-core-tools/releases) - [Commits](Azure/azure-functions-core-tools@4.0.5174...4.0.5274)
…dejs12.x and nodejs10.x runtimes (#3600)
This doesn't change current behaviour, but makes the intent explicit.
…test v16 using >=v16.20.1 avoids an EBADENGINE warning from installing [email protected]
Commit message:
|
.github/workflows/test.yml
Outdated
@@ -14,6 +14,7 @@ on: | |||
pull_request: | |||
branches: | |||
- main | |||
- dev/4.x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you think it's necessary to add 3.x
here to run tests when doing maintenance PRs for bug fixing and such?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, great point. I'll add that. And I guess we should remove dev/4.x before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in commit 5ae4588.
(I'm not actually sure if instead we'll need this change to test.yml on the 3.x branch for it to be used for pushes and PR targetting 3.x. We shall see.)
…of ELASTIC_APM_LOG_UNCAUGHT_EXCEPTIONS in the tests (#3604)
When '20' was added there was only a 20.0 Node.js version.
|
elastic/apm-aws-lambda#407 is required to get the elastic/apm-aws-lambda#402 fix on to the "8.9" branch, so that our apm-agent-nodejs 4.x docs build uses it. This will allow having a https://www.elastic.co/guide/en/apm/agent/nodejs/current/lambda.html doc page that uses the correct "latest version" Lambda layer, even if that is not the "latest in time" release (e.g. it'll point to a 4.0.0 release, even if there is a 3.50.0 release that comes later; or it'll point to 3.49.1 even if I do a later 4.0.0-rc.1 pre-release). |
feat!: the start of v4.x Significant and breaking changes: - Min supported Node.js is now 14.5.0 (up from 8.6). - Drop support for the obsolete "patch" context manager, i.e. the `contextManager: "patch"` config option. This was a limited async context management that predated the preferred `AsyncLocalStorage` core Node.js mechanism for context tracking. (elastic#3529) - Config vars: - Remove `logUncaughtExceptions` config option, if the agent's `uncaughtException` handler is active it now *always* logs the error to the console. (elastic#2412) - Remove `filterHttpHeaders` config option, see `sanitizeFieldNames` instead. (elastic#3332) - Remove long deprecate `ELASTIC_APM_KUBERNETES_*` envvars, use `KUBERNETES_*` instead. (elastic#2661) - The `useElasticTraceparentHeader` config option now defaults to `false`. This means the `elastic-apm-traceparent` HTTP header is now no longer sent by default. (elastic#3555) - Drop erroneous `ELASTIC_SANITIZE_FIELD_NAMES` and `ELASTIC_IGNORE_MESSAGE_QUEUES` config envvars. - Instrumentations: - Drop instrumentation for old `hapi`, the current `@hapi/hapi` is still instrumented. (elastic#2691) - APIs: - Ignore a `timer` option passed to `startTransaction()` and `startSpan()` APIs. (elastic#2990) - Remove the deprecated `span.toString()` and `transaction.toString()` APIs. (elastic#2348) - Change `apm.startTransaction()` API to return a noop transaction instead of null when the agent is not started. (elastic#2429) - Remove `transaction.subtype` and `transaction.action` properties from the API. This also impacts <<apm-start-transaction>> and `transaction.setType(...)`, both of which now no longer accept `subtype` and `action` parameters. (elastic#3557)
This is a major version bump, primarily to move the min supported Node.js to v14.5.0 (from v8.6).
Prep checklist:
"private": true
publishing guard in package.jsongh release create ...
per handle release/dist tags for published artifacts when there are multiple dev branches #2668 (comment)Ready to go steps/checklist (to be done in order):
async-cache
andstring-similarity
to avoid the "deprecated" warnings onnpm install elastic-apm-node
.--tag=latest-3
and--latest=false
appropriately in the release steps. (Note: I want to do a 3.x release after the 4.0.0 release to see if the npm dist-tag stuff works properly. 4.0.0 should still be "latest" after this release.)