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