Skip to content

Commit 349d572

Browse files
committed
Add region tags in main.py
1 parent 9b67803 commit 349d572

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

samples/adk-sql-agent/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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]
107107
def 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

131133
if __name__ == "__main__":

0 commit comments

Comments
 (0)