11 instantiations of OtlpKeyValueJson
Aspire.Dashboard (5)
Model\TelemetryExportService.cs (5)
621
new
OtlpKeyValueJson
626
new
OtlpKeyValueJson
636
attributes.Add(new
OtlpKeyValueJson
673
result[i] = new
OtlpKeyValueJson
684
result[attributes.Length + i] = new
OtlpKeyValueJson
Aspire.Dashboard.Tests (6)
Model\TelemetryImportServiceTests.cs (6)
439
new
OtlpKeyValueJson
{ Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } },
440
new
OtlpKeyValueJson
{ Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } }
484
new
OtlpKeyValueJson
{ Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } },
485
new
OtlpKeyValueJson
{ Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } }
529
new
OtlpKeyValueJson
{ Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } },
530
new
OtlpKeyValueJson
{ Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } }
43 references to OtlpKeyValueJson
Aspire.Dashboard (41)
Model\TelemetryExportService.cs (3)
619
var attributes = new List<
OtlpKeyValueJson
>
659
private static
OtlpKeyValueJson
[]? ConvertAttributes(KeyValuePair<string, string>[] attributes, Func<KeyValuePair<string, string>[]>? getAdditionalAttributes = null)
669
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)
Otlp\Model\Serialization\OtlpJsonSerializerContext.cs (1)
25
[JsonSerializable(typeof(
OtlpKeyValueJson
))]
Otlp\Model\Serialization\OtlpMetricsJson.cs (6)
114
public
OtlpKeyValueJson
[]? Metadata { get; set; }
211
public
OtlpKeyValueJson
[]? Attributes { get; set; }
263
public
OtlpKeyValueJson
[]? Attributes { get; set; }
339
public
OtlpKeyValueJson
[]? Attributes { get; set; }
455
public
OtlpKeyValueJson
[]? Attributes { get; set; }
528
public
OtlpKeyValueJson
[]? FilteredAttributes { get; set; }
src\Shared\ConsoleLogs\SharedAIHelpers.cs (8)
221
foreach (
var
attr in span.Attributes.Where(a => a.Key != OtlpHelpers.AspireDestinationNameAttribute))
292
private static string MapOtelAttributeValue(
OtlpKeyValueJson
attribute)
473
public static string GetAttributeValue(
OtlpKeyValueJson
attribute)
490
public static string? GetAttributeStringValue(
OtlpKeyValueJson
[]? attributes, string key)
497
foreach (
var
attr in attributes)
529
public static IEnumerable<
OtlpKeyValueJson
> GetFilteredAttributes(
OtlpKeyValueJson
[]? attributes)
585
foreach (
var
attr in GetFilteredAttributes(logEntry.LogRecord.Attributes))
src\Shared\Otlp\Serialization\OtlpCommonJson.cs (2)
79
public
OtlpKeyValueJson
[]? Values { get; set; }
121
public
OtlpKeyValueJson
[]? Attributes { get; set; }
src\Shared\Otlp\Serialization\OtlpLogsJson.cs (1)
97
public
OtlpKeyValueJson
[]? Attributes { 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)
129
var
logIdAttribute = Assert.Single(logRecord.Attributes, a => a.Key == OtlpHelpers.AspireLogIdAttribute);
864
var
japaneseAttr = Assert.Single(logRecord.Attributes, a => a.Key == "japanese.attr");