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 5e5374c commit db7b742Copy full SHA for db7b742
tests/helpers/constants.py
@@ -1,6 +1,8 @@
1
"""Constants shared by multiple tests"""
2
3
-STANDARD_MSG_ATTRIBUTES = {
+import sys
4
+
5
+_msg_attrs = [
6
"written_at",
7
"written_ts",
8
"msg",
@@ -11,4 +13,9 @@
11
13
"module",
12
14
"line_no",
15
"correlation_id",
-}
16
+]
17
18
+if sys.version_info.major == 3 and sys.version_info.minor >= 12:
19
+ _msg_attrs.append("taskName")
20
21
+STANDARD_MSG_ATTRIBUTES = set(_msg_attrs)
0 commit comments