File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -103,13 +103,13 @@ def setup_opentelemetry() -> None:
103103
104104# [END opentelemetry_adk_otel_setup]
105105
106-
106+ # [START opentelemetry_adk_launch_web_interface]
107107def main () -> None :
108108 # Make sure to set:
109109 # OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true
110110 # OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true
111111 # in order to full prompts and responses and logs messages.
112- # For this sample, these can be set by loading the `main .env` file.
112+ # For this sample, these can be set by loading the `opentelemetry .env` file.
113113 setup_opentelemetry ()
114114
115115 # Call the function to get the FastAPI app instance.
@@ -125,7 +125,9 @@ def main() -> None:
125125 web = SERVE_WEB_INTERFACE ,
126126 )
127127
128+ # Lauch the web interface on port 8080.
128129 uvicorn .run (app , host = "0.0.0.0" , port = int (os .environ .get ("PORT" , 8080 )))
130+ # [END opentelemetry_adk_launch_web_interface]
129131
130132
131133if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments