docs: adjust observability pages snippets - #897
Conversation
Card links check✅ No broken Card links found. Checked external links in 1.4s |
✅ Markdown Lint PassedAll markdown files meet the linting standards! 🎉 |
Add Python (Beta) snippet siblings for the observability nav group, mirroring the experiments-pages rollout (PR #850). Beta variants demonstrate the new `LogStream` class for routing logs via `LogStream.context()` instead of `galileo_context(project=..., log_stream=...)`.
34562da to
aa60ba8
Compare
|
✅ Mintlify Dev Server Started Successfully! The documentation can be served without errors. |
|
Cross-checked the new beta snippets against
|
xke
left a comment
There was a problem hiding this comment.
the beta snippet in /sdk-api/logging/galileo-logger seems unnecessary
|
No activity for 30 days — this PR will be closed in 5 days unless updated. |
2 similar comments
|
No activity for 30 days — this PR will be closed in 5 days unless updated. |
|
No activity for 30 days — this PR will be closed in 5 days unless updated. |
Describe your changes
Add Python (Beta) snippet siblings across the Observability nav group, mirroring the experiments-pages rollout in PR #850.
Beta variants showcase the new
LogStreamclass for routing logs viaLogStream.context()instead ofgalileo_context(project=..., log_stream=...). Pages already covered by earlier work (Overview, Sessions Overview, Multimodal Observability, Distributed Tracing) are unchanged because their Python snippets do not have a meaningful beta variant — they either contain no code or use APIs (GalileoLogger, span/trace methods,galileo_context.init(mode=\"distributed\")) that are unchanged in the beta SDK.Pages updated
sdk-api/logging/logging-basics.mdx— beta tabs forcreate-logger-with-projectandcontext-get-loggersdk-api/logging/galileo-logger.mdx— beta tab forcreate-loggersdk-api/logging/log-decorator/log-decorator.mdx— beta tab for the context-management examplesdk-api/logging/galileo-context.mdx— beta tab fornesting-scopessdk-api/logging/tags-and-metadata.mdx— beta tabs for the initial setup (py-1) and the final combined sample (py-7)New snippet files
```
snippets/code/python-beta/sdk/logging/create-logger-with-project.mdx
snippets/code/python-beta/sdk/logging/context-get-logger.mdx
snippets/code/python-beta/sdk/logging/nesting-scopes.mdx
snippets/code/python-beta/sdk/logging/create-logger.mdx
snippets/code/python-beta/sdk/decorators/log-decorator-context-management.mdx
snippets/code/python-beta/tags-and-metadata/tags-and-metadata-py-1.mdx
snippets/code/python-beta/tags-and-metadata/tags-and-metadata-py-7.mdx
```
Shortcut ticket
SC-63596
Checklist before requesting a review