4 writes to Key
Aspire.Dashboard (4)
Model\TelemetryExportService.cs (3)
329Key = OtlpResource.SERVICE_NAME, 334Key = OtlpResource.SERVICE_INSTANCE_ID, 360Key = a.Key,
OtlpJsonSerializerContext.OtlpKeyValueJson.g.cs (1)
59Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpKeyValueJson)obj).Key = value!,
10 references to Key
Aspire.Dashboard (4)
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (2)
784if (json.Key is not null) 786kv.Key = json.Key;
OtlpJsonSerializerContext.OtlpKeyValueJson.g.cs (2)
58Getter = static obj => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpKeyValueJson)obj).Key, 106string __value_Key = ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpKeyValueJson)value).Key;
Aspire.Dashboard.Tests (6)
Model\TelemetryExportServiceTests.cs (6)
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"); 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");