aws-powertools / powertools-lambda-java

Powertools is a developer toolkit to implement Serverless best practices and increase developer velocity.
https://docs.powertools.aws.dev/lambda/java/
MIT No Attribution
285 stars 88 forks source link

Tracing: add service value annotations #654

Closed pankajagrawal16 closed 2 years ago

pankajagrawal16 commented 2 years ago

Is your feature request related to a problem? Please describe. Original issue: https://github.com/awslabs/aws-lambda-powertools-python/issues/850

When troubleshooting a larger app, service annotation would've made it easier to slice the service map in X-Ray. Similarly, ColdStart annotation is only added when there is a cold start - having false would be great to quickly analyze sampled requests where cold start happened vs warm starts.

Describe the solution you'd like Include service annotation, Service, if value is defined

Describe alternatives you've considered Manually create that as part of my function

Additional context

pankajagrawal16 commented 2 years ago

Added in https://github.com/awslabs/aws-lambda-powertools-java/releases/tag/v1.9.0