Skip to content

Commit 9ee46ae

Browse files
committed
Fix busted test
1 parent 1f44e10 commit 9ee46ae

File tree

1 file changed

+1
-1
lines changed
  • opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal

1 file changed

+1
-1
lines changed

opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def to_json(self, indent: int | None = 4) -> str:
237237
),
238238
"dropped_attributes": self.dropped_attributes,
239239
"timestamp": ns_to_iso_str(self.timestamp)
240-
if self.timestamp
240+
if self.timestamp is not None
241241
else None,
242242
"observed_timestamp": ns_to_iso_str(self.observed_timestamp),
243243
"trace_id": (

0 commit comments

Comments
 (0)