12 writes to StringValue
Aspire.Dashboard (5)
Model\TelemetryExportService.cs (4)
235Body = new OtlpAnyValueJson { StringValue = log.Message }, 367Value = new OtlpAnyValueJson { StringValue = resource.ResourceName } 372Value = new OtlpAnyValueJson { StringValue = resource.InstanceId } 398Value = new OtlpAnyValueJson { StringValue = a.Value }
OtlpJsonSerializerContext.OtlpAnyValueJson.g.cs (1)
59Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpAnyValueJson)obj).StringValue = value!,
Aspire.Dashboard.Tests (7)
Model\TelemetryImportServiceTests.cs (7)
415new OtlpKeyValueJson { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }, 416new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } } 431Body = new OtlpAnyValueJson { StringValue = message } 460new OtlpKeyValueJson { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }, 461new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } } 505new OtlpKeyValueJson { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }, 506new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } }
11 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 (8)
Model\TelemetryExportServiceTests.cs (8)
65Assert.Contains(resourceLogs.Resource.Attributes, a => a.Key == OtlpResource.SERVICE_NAME && a.Value?.StringValue == "TestService"); 66Assert.Contains(resourceLogs.Resource.Attributes, a => a.Key == OtlpResource.SERVICE_INSTANCE_ID && a.Value?.StringValue == "instance-1"); 79Assert.Equal("Test log message", logRecord.Body?.StringValue); 87Assert.Contains(logRecord.Attributes, a => a.Key == "custom.attr" && a.Value?.StringValue == "custom-value"); 273Assert.Contains(resourceSpans.Resource.Attributes, a => a.Key == OtlpResource.SERVICE_NAME && a.Value?.StringValue == "TestService"); 296Assert.Contains(span.Attributes, a => a.Key == "http.method" && a.Value?.StringValue == "GET"); 385Assert.Contains(resourceMetrics.Resource.Attributes, a => a.Key == OtlpResource.SERVICE_NAME && a.Value?.StringValue == "TestService"); 503Assert.Equal("log-resource1-111", logRecord.Body?.StringValue);