Skip to content

[Bug]: Empty AttributeSet surprising inequality #1909

Open
@BrynCooke

Description

@BrynCooke

What happened?

When running tests I check that the attributes expected == the attributes coming from an instrument.

AttributeSet::default() has a hash of zero as the hasher is not invoked. source
AttributeSet::new(Vec::default()) has a different hash. source

This leads to surprising inequality for empty attribute sets.

API Version

0.23.0

SDK Version

0.23.0

What Exporter(s) are you seeing the problem on?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriage:todoNeeds to be traiged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions