2 implementations of IOtlpResource
Aspire.Dashboard (2)
Otlp\Model\OtlpResource.cs (1)
16
public class OtlpResource :
IOtlpResource
src\Shared\Otlp\IOtlpResource.cs (1)
28
public sealed record SimpleOtlpResource(string ResourceName, string? InstanceId) :
IOtlpResource
;
20 references to IOtlpResource
Aspire.Dashboard (20)
Model\Assistant\AIHelpers.cs (2)
198
public static (string json, string limitMessage) GetStructuredLogsJson(OtlpTelemetryDataJson otlpData, DashboardOptions options, Func<
IOtlpResource
, string> getResourceName, bool includeDashboardUrl = false)
203
internal static string GetStructuredLogJson(OtlpTelemetryDataJson otlpData, DashboardOptions options, Func<
IOtlpResource
, string> getResourceName, bool includeDashboardUrl = false)
Model\Assistant\Prompts\KnownChatMessages.cs (5)
180
public static ChatMessage CreateErrorStructuredLogsMessage(List<OtlpLogEntry> errorLogs, DashboardOptions options, Func<
IOtlpResource
, string> getResourceName)
199
public static ChatMessage CreateAnalyzeLogEntryMessage(OtlpLogEntry logEntry, DashboardOptions options, Func<
IOtlpResource
, string> getResourceName)
287
public static ChatMessage CreateAnalyzeTraceMessage(OtlpTrace trace, List<OtlpLogEntry> traceLogEntries, IEnumerable<IOutgoingPeerResolver> outgoingPeerResolvers, DashboardOptions options, Func<
IOtlpResource
, string> getResourceName)
314
public static ChatMessage CreateAnalyzeSpanMessage(OtlpSpan span, List<OtlpLogEntry> traceLogEntries, IEnumerable<IOutgoingPeerResolver> outgoingPeerResolvers, DashboardOptions options, Func<
IOtlpResource
, string> getResourceName)
341
public static ChatMessage CreateErrorTracesMessage(List<OtlpTrace> errorTraces, IEnumerable<IOutgoingPeerResolver> outgoingPeerResolvers, DashboardOptions options, Func<
IOtlpResource
, string> getResourceName)
Otlp\Model\OtlpResource.cs (1)
284
public static string GetResourceName(OtlpResourceView resource, IReadOnlyList<
IOtlpResource
> allResources) =>
src\Shared\ConsoleLogs\SharedAIHelpers.cs (8)
60
Func<
IOtlpResource
, string> getResourceName,
89
Func<
IOtlpResource
, string> getResourceName,
109
Func<
IOtlpResource
, string> getResourceName,
138
Func<
IOtlpResource
, string> getResourceName,
209
Func<
IOtlpResource
, string> getResourceName,
576
Func<
IOtlpResource
, string> getResourceName,
760
internal sealed record OtlpLogEntryDto(OtlpLogRecordJson LogRecord,
IOtlpResource
Resource, string? ScopeName);
775
internal 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)
103
public static string GetResourceName(
IOtlpResource
resource, IReadOnlyList<
IOtlpResource
> allResources)
106
foreach (
var
item in allResources)