10 writes to Key
Aspire.Dashboard (4)
Model\TelemetryExportService.cs (3)
366Key = OtlpResource.SERVICE_NAME, 371Key = OtlpResource.SERVICE_INSTANCE_ID, 397Key = a.Key,
OtlpJsonSerializerContext.OtlpKeyValueJson.g.cs (1)
59Setter = static (obj, value) => ((global::Aspire.Dashboard.Otlp.Model.Serialization.OtlpKeyValueJson)obj).Key = value!,
Aspire.Dashboard.Tests (6)
Model\TelemetryImportServiceTests.cs (6)
415new OtlpKeyValueJson { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }, 416new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } } 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 } }
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)
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"); 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");