Skip to content

Improve clarity and fix Docs for Logging #69

Closed
@dgomesbr

Description

@dgomesbr

What were you initially searching for in the docs?

  • Don't use service_undefined in Java, use Null or String.Empty.
  • Use units to represent the percentage, clarity over the 0.1. (http://jsr-108.sourceforge.net/javadoc/javax/units/NonSI.html#PERCENT) I'll review the javadocs of it to make it explicitly whether we should be using 0.01, 0.1, 10, etc.
  • Message, Unserializable JSON values will be casted to string, question: How? calling toString()? if so, tell that toString() will be called. Also, what about exceptions there? Will that be swollen?
  • Version is great, what about logging the alias?
  • Please, make this a warning/info box, this is too subtle the way it is today and if this precedence is respected elsewhere, create a section for know before you go. Configuration on environment variable is given precedence over sampling rate configuration on annotation, provided it's in valid value range.

Is this related to an existing part of the documentation? Please share a link
https://awslabs.github.io/aws-lambda-powertools-java/core/logging/#standard-structured-keys

Describe how we could make it clearer
Address the points listed

If you have a proposed update, please share it here

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions