11 instantiations of OtlpKeyValueJson
Aspire.Dashboard (5)
Model\TelemetryExportService.cs (5)
611
attributes.Add(new
OtlpKeyValueJson
628
new
OtlpKeyValueJson
633
new
OtlpKeyValueJson
666
result[i] = new
OtlpKeyValueJson
677
result[attributes.Length + i] = new
OtlpKeyValueJson
Aspire.Dashboard.Tests (6)
Model\TelemetryImportServiceTests.cs (6)
492
new
OtlpKeyValueJson
{ Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } },
493
new
OtlpKeyValueJson
{ Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } }
537
new
OtlpKeyValueJson
{ Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } },
538
new
OtlpKeyValueJson
{ Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } }
582
new
OtlpKeyValueJson
{ Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } },
583
new
OtlpKeyValueJson
{ Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } }
34 references to OtlpKeyValueJson
Aspire.Dashboard (32)
Model\TelemetryExportService.cs (2)
652
private static
OtlpKeyValueJson
[]? ConvertAttributes(KeyValuePair<string, string>[] attributes, Func<KeyValuePair<string, string>[]>? getAdditionalAttributes = null)
662
var result = new
OtlpKeyValueJson
[attributes.Length + additionalCount];
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (14)
153
foreach (
var
attr in json.Attributes)
195
foreach (
var
attr in json.Attributes)
221
foreach (
var
attr in json.Attributes)
315
foreach (
var
attr in json.Attributes)
416
foreach (
var
kv in json.Metadata)
507
foreach (
var
attr in json.Attributes)
544
foreach (
var
attr in json.Attributes)
603
foreach (
var
attr in json.Attributes)
676
foreach (
var
attr in json.Attributes)
718
foreach (
var
attr in json.FilteredAttributes)
751
foreach (
var
attr in json.Attributes)
773
foreach (
var
attr in json.Attributes)
782
private static KeyValue ToProtobuf(
OtlpKeyValueJson
json)
848
foreach (
var
kv in json.Values)
src\Shared\Otlp\Serialization\OtlpCommonJson.cs (2)
79
public
OtlpKeyValueJson
[]? Values { get; set; }
146
public
OtlpKeyValueJson
[]? Attributes { get; set; }
src\Shared\Otlp\Serialization\OtlpJsonSerializerContext.cs (1)
30
[JsonSerializable(typeof(
OtlpKeyValueJson
))]
src\Shared\Otlp\Serialization\OtlpLogsJson.cs (1)
97
public
OtlpKeyValueJson
[]? Attributes { get; set; }
src\Shared\Otlp\Serialization\OtlpMetricsJson.cs (6)
113
public
OtlpKeyValueJson
[]? Metadata { get; set; }
210
public
OtlpKeyValueJson
[]? Attributes { get; set; }
262
public
OtlpKeyValueJson
[]? Attributes { get; set; }
339
public
OtlpKeyValueJson
[]? Attributes { get; set; }
456
public
OtlpKeyValueJson
[]? Attributes { get; set; }
529
public
OtlpKeyValueJson
[]? FilteredAttributes { get; set; }
src\Shared\Otlp\Serialization\OtlpResourceJson.cs (3)
17
public
OtlpKeyValueJson
[]? Attributes { get; set; }
42
foreach (
var
attr in Attributes)
63
foreach (
var
attr in Attributes)
src\Shared\Otlp\Serialization\OtlpTraceJson.cs (3)
122
public
OtlpKeyValueJson
[]? Attributes { get; set; }
186
public
OtlpKeyValueJson
[]? Attributes { get; set; }
223
public
OtlpKeyValueJson
[]? Attributes { get; set; }
Aspire.Dashboard.Tests (2)
Model\TelemetryExportServiceTests.cs (2)
138
var
logIdAttribute = Assert.Single(logRecord.Attributes, a => a.Key == OtlpHelpers.AspireLogIdAttribute);
1027
var
japaneseAttr = Assert.Single(logRecord.Attributes, a => a.Key == "japanese.attr");