5 writes to StringValue
Aspire.Dashboard (5)
Model\TelemetryExportService.cs (4)
198
Body = new OtlpAnyValueJson {
StringValue
= log.Message },
330
Value = new OtlpAnyValueJson {
StringValue
= resource.ResourceName }
335
Value = new OtlpAnyValueJson {
StringValue
= resource.InstanceId }
361
Value = new OtlpAnyValueJson {
StringValue
= a.Value }
OtlpJsonSerializerContext.OtlpAnyValueJson.g.cs (1)
59
Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpAnyValueJson)obj).
StringValue
= value!,
10 references to StringValue
Aspire.Dashboard (3)
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (2)
798
if (json.
StringValue
is not null)
800
anyValue.StringValue = json.
StringValue
;
OtlpJsonSerializerContext.OtlpAnyValueJson.g.cs (1)
58
Getter = static obj => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpAnyValueJson)obj).
StringValue
,
Aspire.Dashboard.Tests (7)
Model\TelemetryExportServiceTests.cs (7)
61
Assert.Contains(resourceLogs.Resource.Attributes, a => a.Key == OtlpResource.SERVICE_NAME && a.Value?.
StringValue
== "TestService");
62
Assert.Contains(resourceLogs.Resource.Attributes, a => a.Key == OtlpResource.SERVICE_INSTANCE_ID && a.Value?.
StringValue
== "instance-1");
75
Assert.Equal("Test log message", logRecord.Body?.
StringValue
);
83
Assert.Contains(logRecord.Attributes, a => a.Key == "custom.attr" && a.Value?.
StringValue
== "custom-value");
269
Assert.Contains(resourceSpans.Resource.Attributes, a => a.Key == OtlpResource.SERVICE_NAME && a.Value?.
StringValue
== "TestService");
292
Assert.Contains(span.Attributes, a => a.Key == "http.method" && a.Value?.
StringValue
== "GET");
381
Assert.Contains(resourceMetrics.Resource.Attributes, a => a.Key == OtlpResource.SERVICE_NAME && a.Value?.
StringValue
== "TestService");