Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NN--- authored Jan 30, 2025
1 parent 73f414e commit 5e6f1cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opentelemetry-sdk/tests/logs/test_log_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_log_record_to_json(self):
"schema_url": "",
},
},
indent: Optional[int] = 4,
indent=4,
)
actual = LogRecord(
timestamp=0,
Expand All @@ -54,7 +54,7 @@ def test_log_record_to_json(self):
resource=Resource({"service.name": "foo"}),
)

self.assertEqual(expected, actual.to_json(indent: Optional[int] = 4))
self.assertEqual(expected, actual.to_json(indent=4))
self.assertEqual(
actual.to_json(indent=None),
'{"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": ""}}',
Expand Down

0 comments on commit 5e6f1cf

Please sign in to comment.