File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed
quickstarts/01-hello-world-observability Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,7 @@ async def main():
27
27
from dapr_agents .observability import DaprAgentsInstrumentor
28
28
29
29
# 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" })
33
31
34
32
# Set up the OpenTelemetry TracerProvider with the resource
35
33
tracer_provider = TracerProvider (resource = resource )
@@ -51,8 +49,9 @@ async def main():
51
49
instrumentor .instrument (tracer_provider = tracer_provider , skip_dep_check = True )
52
50
53
51
# 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
+ )
56
55
57
56
58
57
if __name__ == "__main__" :
Original file line number Diff line number Diff line change @@ -27,9 +27,7 @@ async def main():
27
27
from dapr_agents .observability import DaprAgentsInstrumentor
28
28
29
29
# 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" })
33
31
34
32
# Set up TracerProvider with resource
35
33
tracer_provider = TracerProvider (resource = resource )
@@ -49,9 +47,9 @@ async def main():
49
47
instrumentor .instrument (tracer_provider = tracer_provider , skip_dep_check = True )
50
48
51
49
# 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
+ )
55
53
56
54
57
55
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments