Skip to content

Docs: CDK examples (metrics & tracer) have outdated references #435

Closed
@mhboon

Description

@mhboon

Bug description

In example-function.MyFunction and example-function.MyFunctionWithDecorator
line 9: const metrics = new Metrics({ namespace: namespace, service: serviceName });
service should be serviceName

In example-function.MyFunctionWithDecorator
typo in line 14 @tracer.captureLambdaHanlder() should be @tracer.captureLambdaHandler()

Expected Behavior

Try out the examples

Current Behavior

problems in IDE

Possible Solution

correct the lines; see summary

Steps to Reproduce

See summary

Environment

  • Powertools version used: 0.02
  • Packaging format (Layers, npm):
  • AWS Lambda function runtime: N/A
  • Debugging logs:

Related issues, RFCs

Metadata

Metadata

Assignees

Labels

completedThis item is complete and has been merged/shippeddocumentationImprovements or additions to documentationgood-first-issueSomething that is suitable for those who want to start contributing

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions