Skip to content

Commit 28076f6

Browse files
committed
linter
Signed-off-by: yaron2 <[email protected]>
1 parent 6b327eb commit 28076f6

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

quickstarts/01-hello-world-observability/01_agent_zipkin.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ async def main():
2727
from dapr_agents.observability import DaprAgentsInstrumentor
2828

2929
# Define the service name using a Resource
30-
resource = Resource(attributes={
31-
"service.name": "dapr-weather-agents"
32-
})
30+
resource = Resource(attributes={"service.name": "dapr-weather-agents"})
3331

3432
# Set up the OpenTelemetry TracerProvider with the resource
3533
tracer_provider = TracerProvider(resource=resource)
@@ -51,8 +49,9 @@ async def main():
5149
instrumentor.instrument(tracer_provider=tracer_provider, skip_dep_check=True)
5250

5351
# Run the agent
54-
await weather_agent.run("What is the weather in Virginia, New York and Washington DC?")
55-
52+
await weather_agent.run(
53+
"What is the weather in Virginia, New York and Washington DC?"
54+
)
5655

5756

5857
if __name__ == "__main__":

quickstarts/01-hello-world-observability/02_agent_otel.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ async def main():
2727
from dapr_agents.observability import DaprAgentsInstrumentor
2828

2929
# Define the service name in the resource
30-
resource = Resource(attributes={
31-
"service.name": "dapr-weather-agents"
32-
})
30+
resource = Resource(attributes={"service.name": "dapr-weather-agents"})
3331

3432
# Set up TracerProvider with resource
3533
tracer_provider = TracerProvider(resource=resource)
@@ -49,9 +47,9 @@ async def main():
4947
instrumentor.instrument(tracer_provider=tracer_provider, skip_dep_check=True)
5048

5149
# Run the agent
52-
await weather_agent.run("What is the weather in Virginia, New York and Washington DC?")
53-
54-
50+
await weather_agent.run(
51+
"What is the weather in Virginia, New York and Washington DC?"
52+
)
5553

5654

5755
if __name__ == "__main__":

0 commit comments

Comments
 (0)