Skip to content
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

fix(lambda): bump @aws-lambda-powertools/tracer from 1.14.2 to 1.16.0 in /lambdas #3622

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 20, 2023

Bumps @aws-lambda-powertools/tracer from 1.14.2 to 1.16.0.

Release notes

Sourced from @​aws-lambda-powertools/tracer's releases.

v1.16.0

Summary

In this minor release we are adding support for two new environments variables to configure the log level in Logger.

You can now configure the log level of for Logger using two new environment variables: AWS_LAMBDA_LOG_LEVEL and POWERTOOLS_LOG_LEVEL. The new environment variables will work along the existing LOG_LEVEL variable that is now considered legacy and will be removed in the future.

Setting the log level now follows this order:

  1. AWS_LAMBDA_LOG_LEVEL environment variable
  2. Setting the log level in code using the logLevel constructor option, or by calling the logger.setLogLevel() method
  3. POWERTOOLS_LOG_LEVEL environment variable

We have also added a new section to the docs to highlight the new behavior.

Changes

🌟New features and non-breaking changes

  • feat(logger): add support for AWS_LAMBDA_LOG_LEVEL and POWERTOOLS_LOG_LEVEL (#1795) by @​dreamorosi

📜 Documentation updates

  • feat(logger): add support for AWS_LAMBDA_LOG_LEVEL and POWERTOOLS_LOG_LEVEL (#1795) by @​dreamorosi

This release was made possible by the following contributors:

@​dreamorosi

v1.15.0

Summary

This release brings support for the new Node.js 20 AWS Lambda managed runtime as well as tweaking how the Metrics utility emits logs under the hood.

Node.js 20 support

With this release we are excited to announce that Powertools for AWS Lambda (TypeScript) is compatible with the nodejs20.x AWS Lambda managed runtime 🎉.

The toolkit and our public Lambda Layers are both compatible with the new runtime and no code change should be required on your part.

Metrics

The Metrics utility emits logs using the Embedded Metric Format (EMF). Prior to this release, the logs were emitted using the global console object. This makes it so that in addition to the payload of the log, AWS Lambda adds the request id and timestamp of the log.

For most customers, and especially those who consume the metrics in Amazon CloudWatch, this is fine as CloudWatch is able to parse the EMF content and create custom metrics. For customers who instead want to send the metrics to third party observability providers the presence of these strings means having an extra parsing step.

To support these use cases, and to align with the behavior of the Logger utility, the Metrics utility now uses a dedicated instance of the Console object, which allows it to emit only the content of EMF metric. Just like for the Logger, this behavior can be reverted for development environments by setting the POWERTOOLS_DEV environment variable to a truthy value (i.e. true, yes, 1, on, etc.).

When POWERTOOLS_DEV is enabled, the Metrics utility reverts to using the global console object. This allows customers to place mock and spies and optionally override the implementation for testing purposes.

... (truncated)

Changelog

Sourced from @​aws-lambda-powertools/tracer's changelog.

1.16.0 (2023-11-16)

Features

  • logger: add support for AWS_LAMBDA_LOG_LEVEL and POWERTOOLS_LOG_LEVEL (#1795) (e69abfb)

1.15.0 (2023-11-14)

Features

Commits
  • 1e51228 chore(release): v1.16.0 [skip ci]
  • e69abfb feat(logger): add support for AWS_LAMBDA_LOG_LEVEL and `POWERTOOLS_LOG_LEVE...
  • 87fee28 chore: update layer ARN on documentation
  • d508078 chore(release): v1.15.0 [skip ci]
  • 6b9b1bc feat(maintenance): add support for nodejs20.x runtime (#1790)
  • 75dc5b1 feat(metrics): log directly to stdout (#1786)
  • 73a56cc chore: update layer ARN on documentation
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps [@aws-lambda-powertools/tracer](https://github.com/aws-powertools/powertools-lambda-typescript) from 1.14.2 to 1.16.0.
- [Release notes](https://github.com/aws-powertools/powertools-lambda-typescript/releases)
- [Changelog](https://github.com/aws-powertools/powertools-lambda-typescript/blob/main/CHANGELOG.md)
- [Commits](aws-powertools/powertools-lambda-typescript@v1.14.2...v1.16.0)

---
updated-dependencies:
- dependency-name: "@aws-lambda-powertools/tracer"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Nov 20, 2023
@npalm npalm merged commit ba73565 into main Nov 22, 2023
4 checks passed
@npalm npalm deleted the dependabot/npm_and_yarn/lambdas/aws-lambda-powertools/tracer-1.16.0 branch November 22, 2023 12:12
pull bot pushed a commit to nstankov-bg/terraform-aws-github-runner that referenced this pull request Nov 26, 2023
🤖 I have created a release *beep* *boop*
---


##
[5.4.2](philips-labs/terraform-aws-github-runner@v5.4.1...v5.4.2)
(2023-11-26)


### Bug Fixes

* **examples:** webhook-github-app multiple character args
([philips-labs#3625](philips-labs#3625))
([941682e](philips-labs@941682e))
* **lambda:** bump @aws-lambda-powertools/tracer from 1.14.2 to 1.16.0
in /lambdas
([philips-labs#3622](philips-labs#3622))
([ba73565](philips-labs@ba73565))
* **lambda:** bump the aws group in /lambdas with 5 updates
([philips-labs#3620](philips-labs#3620))
([1b944d5](philips-labs@1b944d5))
* **lambda:** bump the octokit group in /lambdas with 2 updates
([philips-labs#3621](philips-labs#3621))
([c54e8c8](philips-labs@c54e8c8))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: forest-releaser[bot] <80285352+forest-releaser[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant