2 instantiations of OtlpLogsDataJson
Aspire.Dashboard (2)
Model\TelemetryExportService.cs (1)
178
return new
OtlpLogsDataJson
OtlpJsonSerializerContext.OtlpLogsDataJson.g.cs (1)
31
ObjectCreator = () => new global::Aspire.Dashboard.Otlp.Model.Serialization.
OtlpLogsDataJson
(),
23 references to OtlpLogsDataJson
Aspire.Dashboard (20)
Model\TelemetryExportService.cs (2)
121
var
logsJson = ConvertLogsToOtlpJson(resource, logs.Items);
167
internal static
OtlpLogsDataJson
ConvertLogsToOtlpJson(OtlpResource resource, IReadOnlyList<OtlpLogEntry> logs)
Otlp\Model\Serialization\OtlpJsonSerializerContext.cs (1)
34
[JsonSerializable(typeof(
OtlpLogsDataJson
))]
OtlpJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
162
if (type == typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.
OtlpLogsDataJson
))
OtlpJsonSerializerContext.OtlpLogsDataJson.g.cs (16)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.
OtlpLogsDataJson
>? _OtlpLogsDataJson;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.
OtlpLogsDataJson
> OtlpLogsDataJson
22
get => _OtlpLogsDataJson ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.
OtlpLogsDataJson
>)Options.GetTypeInfo(typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.
OtlpLogsDataJson
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.
OtlpLogsDataJson
> Create_OtlpLogsDataJson(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Dashboard.Otlp.Model.Serialization.
OtlpLogsDataJson
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.
OtlpLogsDataJson
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Dashboard.Otlp.Model.Serialization.
OtlpLogsDataJson
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.
OtlpLogsDataJson
).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
39
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Dashboard.Otlp.Model.Serialization.
OtlpLogsDataJson
>(options, objectInfo);
56
DeclaringType = typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.
OtlpLogsDataJson
),
58
Getter = static obj => ((global::Aspire.Dashboard.Otlp.Model.Serialization.
OtlpLogsDataJson
)obj).ResourceLogs,
59
Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.
OtlpLogsDataJson
)obj).ResourceLogs = value!,
66
AttributeProviderFactory = static () => typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.
OtlpLogsDataJson
).GetProperty("ResourceLogs", InstanceMemberBindingFlags, null, typeof(global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpResourceLogsJson[]), global::System.Array.Empty<global::System.Type>(), null),
76
private void OtlpLogsDataJsonSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Dashboard.Otlp.Model.Serialization.
OtlpLogsDataJson
? value)
86
global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpResourceLogsJson[] __value_ResourceLogs = ((global::Aspire.Dashboard.Otlp.Model.Serialization.
OtlpLogsDataJson
)value).ResourceLogs;
Aspire.Dashboard.Tests (3)
Model\TelemetryExportServiceTests.cs (3)
52
var
result = TelemetryExportService.ConvertLogsToOtlpJson(resource, logs.Items);
128
var
result = TelemetryExportService.ConvertLogsToOtlpJson(resource, logs.Items);
206
var
result = TelemetryExportService.ConvertLogsToOtlpJson(resource, logs.Items);