Skip to content

ref(node): Clean up Undici options #7646

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

Merged
merged 1 commit into from
Mar 29, 2023
Merged

Conversation

AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Mar 29, 2023

closes #7624

This PR does a couple of things.

  1. Undeprecates tracePropagationTargets as a top level option in Node options.
  2. Only generates spans/breadcrumbs on a hub if the Undici integration is active.
  3. Moves shouldCreateSpanForRequest into an option in the Undici integration.
  4. Cleans up patching in the test to make it easier to understand.

After these changes get merged in we can add Undici by default to both next.js and sveltekit. We can then think about adding it by default to the Node SDK.

* });
* ```
*/
tracePropagationTargets?: TracePropagationTargets;

// TODO (v8): Remove this in v8
/**
* @deprecated Moved to constructor options of the `Http` integration.
Copy link
Contributor

Choose a reason for hiding this comment

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

Didn't we wanna remove this deprecation entirely?

Copy link
Member Author

Choose a reason for hiding this comment

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

I decided against this for now because it feels weird having this work only for requests as a top level API - we can re-visit later.

@AbhiPrasad AbhiPrasad merged commit 1b04113 into develop Mar 29, 2023
@AbhiPrasad AbhiPrasad deleted the abhi-undici-node-refactor branch March 29, 2023 14:29
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.

Undici integration final touches
2 participants