Skip to content

Limit Body to string in logging library APIs #2068

@tigrannajaryan

Description

@tigrannajaryan

We cannot think of a good use of a structured Body in the logging APIs. All of the logging libraries that we are aware of produce log body (message) as a string. Because of this we think that it is reasonable to limit logging APIs to accept the body as a string only and the structured data that logging libraries allow should go to the attributes.

This limitation likely needs to be added as an amendment to OTEP0150.

Metadata

Metadata

Assignees

Labels

release:required-logdatamodel-gaRequired for declaring log data model stablespec:logsRelated to the specification/logs directory

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions