Skip to content

Trace Annotations not getting added if Annotation Key has a space in it #1499

Closed
@thetuxwhocodes

Description

@thetuxwhocodes

What were you trying to accomplish?

I noticed that Trace Annotations not getting added if Annotation Key has a space in it

The following code works
TracingUtils.putAnnotation("TraceName", "MyTrace");
The following code doesn't work
TracingUtils.putAnnotation("Trace Name", "MyTrace");

Expected Behavior

Annotation should be visible in Trace details page

Annotation should be visible in Trace details page irrespective of how the key is created.

Current Behavior

Annotation is totally missing if key has a space in it

Possible Solution

Did not dig deep on the code

Steps to Reproduce (for bugs)

  1. Try with following code.
  2.        TracingUtils.putAnnotation("TraceName", "MyTrace");
    

Environment

  • Powertools for AWS Lambda (Java) version used: 1.17.0
  • Packaging format (Layers, Maven/Gradle): Maven
  • AWS Lambda function runtime: java11
  • Debugging logs

How to enable debug mode**

# paste logs here

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfeature-requestNew feature or requestpriority:2High - core feature or affects 60% of the userssize/XS

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions