Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

feat: Update unified API page #1314

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

feat: Update unified API page #1314

wants to merge 2 commits into from

Conversation

mydea
Copy link
Member

@mydea mydea commented Jun 19, 2024

This renames the current "Unified API" page to "Hub based API", and updates the unified API page to be based around the new scope-only world.

There is for sure some stuff to change here yet, esp. around the async threads stuff - feel free to propose changes etc!

@mydea mydea self-assigned this Jun 19, 2024
Copy link

vercel bot commented Jun 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
develop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2024 2:41pm

src/docs/sdk/unified-api/index.mdx Outdated Show resolved Hide resolved
src/docs/sdk/unified-api/index.mdx Outdated Show resolved Hide resolved
src/docs/sdk/unified-api/index.mdx Outdated Show resolved Hide resolved
Co-authored-by: Sigrid Huemer <32902192+s1gr1d@users.noreply.github.com>
Each thread local SHOULD hold a reference to the current scope & isolation scope that is active for the current thread.
Newly spawned threads SHOULD inherit the reference to the isolation scope from the parent thread, and SHOULD create a new scope that is a child of the parent current scope, and make this the current scope for the child thread.

The isolation scope MAY be forked (instead of using the same reference) for a new thread if the SDK identifies that the new thread is a new logical operation that should not share data with the parent thread.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have a small clarification that the current scope is mainly for span tracking purposes while the isolation scope is for tracking a unit of logical isolation

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants