Skip to content

Commit

Permalink
basic test
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-hensley committed Mar 28, 2024
1 parent 4a2e986 commit e4d00a5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ public void TestHostAttributes()

var resourceAttributes = resource.Attributes.ToDictionary(x => x.Key, x => (string)x.Value);

Assert.Single(resourceAttributes);
Assert.Equal(2, resourceAttributes.Count);

Assert.NotEmpty(resourceAttributes[HostSemanticConventions.AttributeHostName]);
Assert.NotEmpty(resourceAttributes[HostSemanticConventions.AttributeHostId]);
}
}

0 comments on commit e4d00a5

Please sign in to comment.