7 references to AspireLogIdAttribute
aspire (2)
src\Shared\ConsoleLogs\SharedAIHelpers.cs (2)
536
return attributes.Where(a => a.Key is not (ExceptionStackTraceField or ExceptionMessageField or ExceptionTypeField or OtlpHelpers.
AspireLogIdAttribute
));
580
var logIdString = GetAttributeStringValue(logEntry.LogRecord.Attributes, OtlpHelpers.
AspireLogIdAttribute
);
Aspire.Cli.Tests (5)
Mcp\ListStructuredLogsToolTests.cs (5)
105
new OtlpKeyValueJson { Key = OtlpHelpers.
AspireLogIdAttribute
, Value = new OtlpAnyValueJson { StringValue = "42" } },
120
new OtlpKeyValueJson { Key = OtlpHelpers.
AspireLogIdAttribute
, Value = new OtlpAnyValueJson { IntValue = 43 } }
134
new OtlpKeyValueJson { Key = OtlpHelpers.
AspireLogIdAttribute
, Value = new OtlpAnyValueJson { IntValue = 44 } }
204
Assert.False(firstLogAttributes.ContainsKey(OtlpHelpers.
AspireLogIdAttribute
), "aspire.log_id should be filtered from attributes");
220
Assert.False(secondLogAttributes.ContainsKey(OtlpHelpers.
AspireLogIdAttribute
), "aspire.log_id should be filtered from attributes");