Skip to content

Commit

Permalink
Test troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwest committed May 10, 2022
1 parent 7d3e2d8 commit 117da19
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,20 @@
using System.Linq;
using OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation;
using Xunit;
using Xunit.Abstractions;
using OtlpCommon = Opentelemetry.Proto.Common.V1;

namespace OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests
{
public class OtlpAttributeTests
{
private ITestOutputHelper output;

public OtlpAttributeTests(ITestOutputHelper output)
{
this.output = output;
}

[Theory]
[InlineData(sbyte.MaxValue)]
[InlineData(byte.MaxValue)]
Expand All @@ -42,6 +50,8 @@ public class OtlpAttributeTests
[InlineData(new long[] { 1, 2, 3 })]
public void IntegralTypesSupported(object value)
{
this.output.WriteLine($"{value.GetType()}");

var kvp = new KeyValuePair<string, object>("key", value);
var attribute = kvp.ToOtlpAttribute();
Assert.NotNull(attribute);
Expand Down

0 comments on commit 117da19

Please sign in to comment.