23 instantiations of OtlpAnyValueJson
Aspire.Cli.Tests (23)
Commands\ExportCommandTests.cs (1)
792Body = new OtlpAnyValueJson { StringValue = e.body }
Commands\TelemetryCommandTests.cs (2)
205new() { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }, 209attrs.Add(new() { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } });
Commands\TelemetryLogsCommandTests.cs (1)
133Body = new OtlpAnyValueJson { StringValue = e.body }
Commands\TelemetryTestHelper.cs (2)
41new() { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } }, 45attrs.Add(new() { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = instanceId } });
Mcp\ListStructuredLogsToolTests.cs (9)
61new() { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } } 65attributes.Add(new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = serviceInstanceId } }); 99Body = new OtlpAnyValueJson { StringValue = "Application started successfully" }, 104new OtlpKeyValueJson { Key = OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson { StringValue = "42" } }, 105new OtlpKeyValueJson { Key = "custom.attr", Value = new OtlpAnyValueJson { StringValue = "custom-value" } } 114Body = new OtlpAnyValueJson { StringValue = "Connection timeout warning" }, 119new OtlpKeyValueJson { Key = OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson { IntValue = 43 } } 128Body = new OtlpAnyValueJson { StringValue = "Worker failed to process message" }, 133new OtlpKeyValueJson { Key = OtlpHelpers.AspireLogIdAttribute, Value = new OtlpAnyValueJson { IntValue = 44 } }
Mcp\ListTracesToolTests.cs (8)
30new() { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } } 34attributes.Add(new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = serviceInstanceId } }); 73new OtlpKeyValueJson { Key = "http.method", Value = new OtlpAnyValueJson { StringValue = "GET" } }, 74new OtlpKeyValueJson { Key = "http.url", Value = new OtlpAnyValueJson { StringValue = "/api/products" } } 90new OtlpKeyValueJson { Key = "aspire.destination", Value = new OtlpAnyValueJson { StringValue = "catalog-service" } } 105new OtlpKeyValueJson { Key = "error", Value = new OtlpAnyValueJson { StringValue = "Processing failed" } } 338new() { Key = "service.name", Value = new OtlpAnyValueJson { StringValue = serviceName } } 342attributes.Add(new OtlpKeyValueJson { Key = "service.instance.id", Value = new OtlpAnyValueJson { StringValue = serviceInstanceId } });
4 references to OtlpAnyValueJson
aspire (4)
src\Shared\Otlp\Serialization\OtlpCommonJson.cs (2)
67public OtlpAnyValueJson[]? Values { get; set; } 97public OtlpAnyValueJson? Value { get; set; }
src\Shared\Otlp\Serialization\OtlpJsonSerializerContext.cs (1)
26[JsonSerializable(typeof(OtlpAnyValueJson))]
src\Shared\Otlp\Serialization\OtlpLogsJson.cs (1)
91public OtlpAnyValueJson? Body { get; set; }