Skip to content

Commit f940ed2

Browse files
committed
chore: format code
1 parent cb1d689 commit f940ed2

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

docker/opentelemetry/main.py

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
tracer = trace.get_tracer("app_or_package_name", "1.0.0")
1010

11+
1112
def main():
1213
uptrace.configure_opentelemetry(
1314
dsn="http://project2_secret_token@localhost:14317/2",
@@ -27,19 +28,23 @@ def main():
2728

2829

2930
def handle_request(client):
30-
with tracer.start_as_current_span("handle-request", kind=trace.SpanKind.CLIENT) as span:
31+
with tracer.start_as_current_span(
32+
"handle-request", kind=trace.SpanKind.CLIENT
33+
) as span:
3134
client.get("my-key")
3235
client.set("hello", "world")
33-
client.mset({
34-
"employee_name": "Adam Adams",
35-
"employee_age": 30,
36-
"position": "Software Engineer",
37-
})
36+
client.mset(
37+
{
38+
"employee_name": "Adam Adams",
39+
"employee_age": 30,
40+
"position": "Software Engineer",
41+
}
42+
)
3843

3944
pipe = client.pipeline()
40-
pipe.set('foo', 5)
41-
pipe.set('bar', 18.5)
42-
pipe.set('blee', "hello world!")
45+
pipe.set("foo", 5)
46+
pipe.set("bar", 18.5)
47+
pipe.set("blee", "hello world!")
4348
pipe.execute()
4449

4550
return span

0 commit comments

Comments
 (0)