Skip to content

Commit 3e74d5c

Browse files
author
Liudmila Molkova
committed
clean up
1 parent 1c57ab0 commit 3e74d5c

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

opentelemetry-api/tests/attributes/test_attributes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,4 +308,3 @@ def test_locking(self):
308308

309309
for num in range(100):
310310
self.assertEqual(bdict[str(num)], num)
311-

opentelemetry-sdk/benchmarks/metrics/test_benchmark_metrics_histogram.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def benchmark_histogram_record_10():
8080

8181
benchmark(benchmark_histogram_record_10)
8282

83+
8384
@pytest.mark.parametrize("num_labels", [1, 3])
8485
def test_histogram_record_10_small_mapping_attrs(benchmark, num_labels):
8586
labels = {}
@@ -91,6 +92,7 @@ def test_histogram_record_10_complex_attrs():
9192

9293
benchmark(test_histogram_record_10_complex_attrs)
9394

95+
9496
@pytest.mark.parametrize("num_labels", [1, 3])
9597
def test_histogram_record_10_complex_attrs(benchmark, num_labels):
9698
labels = {}
@@ -122,7 +124,10 @@ def test_histogram_record_10_json_string_attrs(benchmark, num_labels):
122124
labels[f"Key{i}"] = {"k1": "v1", "k2": {"k3": "v3", "k4": [1, 2, 3]}}
123125

124126
def test_histogram_record_10_json_string_attrs():
125-
hist10.record(random.random() * MAX_BOUND_VALUE, attributes={k: json.dumps(v) for k, v in labels.items()})
127+
hist10.record(
128+
random.random() * MAX_BOUND_VALUE,
129+
attributes={k: json.dumps(v) for k, v in labels.items()},
130+
)
126131

127132
benchmark(test_histogram_record_10_json_string_attrs)
128133

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,7 @@ def __init__(
109109

110110
def export(self, batch: Sequence[LogData]):
111111
for data in batch:
112-
self.out.write(
113-
self.formatter(data.log_record)
114-
) # + "oh, we forgot to add " + str(data.instrumentation_scope)
112+
self.out.write(self.formatter(data.log_record))
115113
self.out.flush()
116114
return LogExportResult.SUCCESS
117115

0 commit comments

Comments
 (0)