Skip to content

Log warning if trace message exceeds Sanitizer.MAX_MESSAGE_LENGTH #1021

@Dpetters

Description

@Dpetters

Is your feature request related to a problem? Please describe.
I spent too much time debugging why we had an odd drop in a metric in a PowerBI dashboard that we power with our AI telemetry. The root cause ended up being some trace messages getting silently truncated.

Describe the solution you would like
Enabling SDKLogger should cause some warnings to be printed out in the cases where the messages exceed Sanitizer.MAX_MESSAGE_LENGTH.

Describe alternatives you have considered
n/a

Additional context
n/a

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions