1 write to Attributes
Aspire.Dashboard (1)
Model\TelemetryExportService.cs (1)
269
Attributes
= ConvertAttributes(log.Attributes, () =>
14 references to Attributes
Aspire.Dashboard (7)
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (2)
313
if (json.
Attributes
is not null)
315
foreach (var attr in json.
Attributes
)
src\Shared\ConsoleLogs\SharedAIHelpers.cs (5)
544
var stackTrace = GetAttributeStringValue(logEntry.LogRecord.
Attributes
, ExceptionStackTraceField);
550
var message = GetAttributeStringValue(logEntry.LogRecord.
Attributes
, ExceptionMessageField);
553
var type = GetAttributeStringValue(logEntry.LogRecord.
Attributes
, ExceptionTypeField);
580
var logIdString = GetAttributeStringValue(logEntry.LogRecord.
Attributes
, OtlpHelpers.AspireLogIdAttribute);
585
foreach (var attr in GetFilteredAttributes(logEntry.LogRecord.
Attributes
))
Aspire.Dashboard.Tests (7)
Model\TelemetryExportServiceTests.cs (6)
91
Assert.NotNull(logRecord.
Attributes
);
92
Assert.Contains(logRecord.
Attributes
, a => a.Key == "custom.attr" && a.Value?.StringValue == "custom-value");
126
Assert.NotNull(logRecord.
Attributes
);
129
var logIdAttribute = Assert.Single(logRecord.
Attributes
, a => a.Key == OtlpHelpers.AspireLogIdAttribute);
863
Assert.NotNull(logRecord.
Attributes
);
864
var japaneseAttr = Assert.Single(logRecord.
Attributes
, a => a.Key == "japanese.attr");
Model\TelemetryImportServiceTests.cs (1)
349
Assert.Contains(exportedLogRecord.
Attributes
!, a => a.Key == OtlpHelpers.AspireLogIdAttribute && a.Value?.StringValue == originalInternalId.ToString(CultureInfo.InvariantCulture));