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 1f44e10 commit 9ee46aeCopy full SHA for 9ee46ae
opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py
@@ -237,7 +237,7 @@ def to_json(self, indent: int | None = 4) -> str:
237
),
238
"dropped_attributes": self.dropped_attributes,
239
"timestamp": ns_to_iso_str(self.timestamp)
240
- if self.timestamp
+ if self.timestamp is not None
241
else None,
242
"observed_timestamp": ns_to_iso_str(self.observed_timestamp),
243
"trace_id": (
0 commit comments