Skip to content

Commit 4b38118

Browse files
lint
1 parent 56172fa commit 4b38118

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-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
@@ -246,7 +246,7 @@ def serialized_context(self) -> dict:
246246
except TypeError:
247247
# If not JSON-serializable, use string representation
248248
context_dict[key] = str(value)
249-
return context_dict
249+
return context_dict
250250

251251
def to_json(self, indent: int | None = 4) -> str:
252252
return json.dumps(

opentelemetry-sdk/tests/logs/test_log_record.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def test_log_record_to_json(self):
111111
'{"body": "a log line", "severity_number": null, "severity_text": null, "attributes": {"mapping": {"key": "value"}, "none": null, "sequence": [1, 2], "str": "string"}, "dropped_attributes": 0, "timestamp": "1970-01-01T00:00:00.000000Z", "observed_timestamp": "1970-01-01T00:00:00.000000Z", "context": null, "trace_id": "", "span_id": "", "trace_flags": null, "resource": {"attributes": {"service.name": "foo"}, "schema_url": ""}}',
112112
)
113113

114+
# pylint: disable=too-many-locals
114115
@patch("opentelemetry.sdk._logs._internal.get_current_span")
115116
@patch("opentelemetry.trace.propagation.set_value")
116117
@patch("opentelemetry.sdk.trace.RandomIdGenerator.generate_span_id")

0 commit comments

Comments
 (0)