We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56ad0ce commit fe67d45Copy full SHA for fe67d45
opentelemetry-api/tests/events/test_event.py
@@ -11,3 +11,11 @@ def test_event(self):
11
self.assertEqual(
12
event.attributes, {"key": "value", "event.name": "example"}
13
)
14
+
15
+ def test_event_name_copied_in_attributes(self):
16
+ event = Event("name", 123)
17
+ self.assertEqual(event.attributes, {"event.name": "name"})
18
19
+ def test_event_name_has_precedence_over_attributes(self):
20
+ event = Event("name", 123, attributes={"event.name": "attr value"})
21
0 commit comments