2 implementations of IOtlpResource
Aspire.Dashboard (2)
Otlp\Model\OtlpResource.cs (1)
16public class OtlpResource : IOtlpResource
src\Shared\Otlp\IOtlpResource.cs (1)
28public sealed record SimpleOtlpResource(string ResourceName, string? InstanceId) : IOtlpResource;
20 references to IOtlpResource
Aspire.Dashboard (20)
Model\Assistant\AIHelpers.cs (2)
198public static (string json, string limitMessage) GetStructuredLogsJson(OtlpTelemetryDataJson otlpData, DashboardOptions options, Func<IOtlpResource, string> getResourceName, bool includeDashboardUrl = false) 203internal static string GetStructuredLogJson(OtlpTelemetryDataJson otlpData, DashboardOptions options, Func<IOtlpResource, string> getResourceName, bool includeDashboardUrl = false)
Model\Assistant\Prompts\KnownChatMessages.cs (5)
180public static ChatMessage CreateErrorStructuredLogsMessage(List<OtlpLogEntry> errorLogs, DashboardOptions options, Func<IOtlpResource, string> getResourceName) 199public static ChatMessage CreateAnalyzeLogEntryMessage(OtlpLogEntry logEntry, DashboardOptions options, Func<IOtlpResource, string> getResourceName) 287public static ChatMessage CreateAnalyzeTraceMessage(OtlpTrace trace, List<OtlpLogEntry> traceLogEntries, IEnumerable<IOutgoingPeerResolver> outgoingPeerResolvers, DashboardOptions options, Func<IOtlpResource, string> getResourceName) 314public static ChatMessage CreateAnalyzeSpanMessage(OtlpSpan span, List<OtlpLogEntry> traceLogEntries, IEnumerable<IOutgoingPeerResolver> outgoingPeerResolvers, DashboardOptions options, Func<IOtlpResource, string> getResourceName) 341public static ChatMessage CreateErrorTracesMessage(List<OtlpTrace> errorTraces, IEnumerable<IOutgoingPeerResolver> outgoingPeerResolvers, DashboardOptions options, Func<IOtlpResource, string> getResourceName)
Otlp\Model\OtlpResource.cs (1)
284public static string GetResourceName(OtlpResourceView resource, IReadOnlyList<IOtlpResource> allResources) =>
src\Shared\ConsoleLogs\SharedAIHelpers.cs (8)
60Func<IOtlpResource, string> getResourceName, 89Func<IOtlpResource, string> getResourceName, 109Func<IOtlpResource, string> getResourceName, 138Func<IOtlpResource, string> getResourceName, 209Func<IOtlpResource, string> getResourceName, 576Func<IOtlpResource, string> getResourceName, 760internal sealed record OtlpLogEntryDto(OtlpLogRecordJson LogRecord, IOtlpResource Resource, string? ScopeName); 775internal sealed record OtlpSpanDto(OtlpSpanJson Span, IOtlpResource Resource, string? ScopeName);
src\Shared\Otlp\IOtlpResource.cs (1)
24/// Simple implementation of <see cref="IOtlpResource"/> for cases where only the name and instance ID are needed.
src\Shared\Otlp\OtlpHelpers.cs (3)
103public static string GetResourceName(IOtlpResource resource, IReadOnlyList<IOtlpResource> allResources) 106foreach (var item in allResources)