Skip to content

feat: make traceContext accessible #1696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CorieW
Copy link
Member

@CorieW CorieW commented May 28, 2025

Resolves #1676

@CorieW CorieW force-pushed the @invertase/trace-context-access branch from 2744d66 to 183ca42 Compare May 28, 2025 03:22
@cabljac cabljac requested a review from Copilot May 28, 2025 15:33
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR makes the internal traceContext accessible by exporting it publicly in both v1 and v2, addressing the linked issue.

  • Exposes traceContext in both src/v1/index.ts and src/v2/index.ts
  • Removes the @internal annotation from traceContext in src/common/trace.ts

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/v2/index.ts Exports traceContext to make it publicly accessible
src/v1/index.ts Exports traceContext to ensure consistency with v2
src/common/trace.ts Removes the internal annotation from traceContext
Comments suppressed due to low confidence (1)

src/common/trace.ts:2

  • The removal of the @internal annotation from traceContext appears intentional to make it publicly available. Ensure that the public API documentation is updated accordingly to reflect the new accessibility of traceContext.
/* @internal */

Copy link

@cabljac cabljac left a comment

Choose a reason for hiding this comment

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

lgtm

Comment on lines +38 to +39
export { traceContext } from "../common/trace";

Copy link
Contributor

Choose a reason for hiding this comment

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

let's not add any new "feature" in 1st Gen namespace - not technically necessary but more of in the name of principle.

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

Successfully merging this pull request may close these issues.

Is it possible to make traceContext of common/trace public?
3 participants