16 references to GetString
Aspire.Dashboard (10)
Otlp\Model\OtlpHelpers.cs (5)
40serviceInstanceId = attribute.Value.GetString(); 44serviceName = attribute.Value.GetString(); 48processExecutableName = attribute.Value.GetString(); 232var value = TruncateString(attribute.Value.GetString(), context.Options.MaxAttributeLength); 309var value = TruncateString(attribute.Value.GetString(), context.Options.MaxAttributeLength);
Otlp\Model\OtlpInstrument.cs (1)
48if (!HasOverflow && attributes.Count == 1 && attributes[0].Key == "otel.metric.overflow" && attributes[0].Value.GetString() == "true")
Otlp\Model\OtlpLogEntry.cs (4)
46originalFormat = attribute.Value.GetString(); 49parentId = attribute.Value.GetString(); 58eventNameFromAttribute ??= attribute.Value.GetString(); 70? OtlpHelpers.TruncateString(body.GetString(), context.Options.MaxAttributeLength)
Aspire.Dashboard.Tests (6)
TelemetryRepositoryTests\OtlpHelpersTests.cs (6)
25var s = OtlpHelpers.GetString(anyValue); 41var s = OtlpHelpers.GetString(anyValue); 54var s = OtlpHelpers.GetString(anyValue); 67var s = anyValue.GetString(); 90var s = OtlpHelpers.GetString(anyValue); 153var s = OtlpHelpers.GetString(anyValue);