Skip to content

Commit 5e6f1cf

Browse files
authored
Fix
1 parent 73f414e commit 5e6f1cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opentelemetry-sdk/tests/logs/test_log_record.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_log_record_to_json(self):
4545
"schema_url": "",
4646
},
4747
},
48-
indent: Optional[int] = 4,
48+
indent=4,
4949
)
5050
actual = LogRecord(
5151
timestamp=0,
@@ -54,7 +54,7 @@ def test_log_record_to_json(self):
5454
resource=Resource({"service.name": "foo"}),
5555
)
5656

57-
self.assertEqual(expected, actual.to_json(indent: Optional[int] = 4))
57+
self.assertEqual(expected, actual.to_json(indent=4))
5858
self.assertEqual(
5959
actual.to_json(indent=None),
6060
'{"body": "a log line", "severity_number": null, "severity_text": null, "attributes": null, "dropped_attributes": 0, "timestamp": "1970-01-01T00:00:00.000000Z", "observed_timestamp": "1970-01-01T00:00:00.000000Z", "trace_id": "", "span_id": "", "trace_flags": null, "resource": {"attributes": {"service.name": "foo"}, "schema_url": ""}}',

0 commit comments

Comments
 (0)