<PackageReference Include="Azure.Monitor.OpenTelemetry.Exporter" Version="1.10.0-beta.1" />
Azure.Monitor.OpenTelemetry.Exporter.Internals.StringExtensions
public static string Truncate(
this string input,
int maxLength)
This method will truncate a string if that string exceeds a specified max length.