Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 14, 2024. It is now read-only.
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Update Docs for Context Management for SDKs #1180

Copy link
Copy link
@smeubank

Description

@smeubank
Issue body actions

Background:

Historically SDKs implemented the Hubs and Scopes models, a major defining aspect of the "Unified API". This introduced a lot of complexity in a user facing mananer, allowed more room for error from the user. In the past we have already said that the Unified API should not be followed dogmatically.

In a post hubs and scopes world, we would prefer SDKs do not have Hubs at all. Now since looking at adopting OpenTelemetry "packages", to replace or addition to, our existing Performance packages in SDKs, there is a forcing factor. Since OTel's SDKs all follow a slightly different model for context management, which does not follow ours and prevent that we can support OTel at all, we were forced to start on Node and Python to remove the hub so OTel could be introduced.

Within this work, there were breaking changes, which could not be avoided. However in other SDKs this should be avoided.

Statement of Facts

  1. hubs and scopes has been less than ideal and we'd like to move away from it
  2. OpenTelemetry is desired for performance on all SDKs
  3. We should try to avoid all breaking changes, and allow for backward's compatibility when possible

Requirements:

  • Shimming (backwards compatibility)
  • Isolation Scope
  • Copy-on-Write

Existing Dev Docs: Hubs and Scopes Refactoring

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.