Skip to content

Conversation

@Lms24
Copy link
Member

@Lms24 Lms24 commented Jan 15, 2024

This PR adds some @deprecated annotations to already deprecated Span APIs:

  • Span.toTraceParent()
  • Span.toContext()
  • Span.updateWithContext()
  • Span.getTraceContext()

These fields were already deprecated on the interface, this patch only adds the deprecation annotation to the JSDoc of the class fields.
When testing with eslint, it will correctly infer the deprecation status from the interface. VSCode also shows the fields as deprecated in the JSDoc but doesn't apply the strikethrough. So for extra clarity, let's also deprecate the class fields here.

ref #10184

These fields were alredy deprecated on the interface, this patch
only adds the deprecation annotation to the JSDoc of the class fields.
After testing with eslint, linters will correctly infer the deprecation
status. VSCode also shows the fields as deprecated in the JSDoc but
doesn't apply the strikethrough. So for extra clarity, let's also
deprecate the class fields here.
@Lms24 Lms24 enabled auto-merge (squash) January 15, 2024 16:48
@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 77.12 KB (+0.02% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 68.48 KB (+0.02% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.14 KB (+0.02% 🔺)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 32.52 KB (+0.04% 🔺)
@sentry/browser (incl. Feedback) - Webpack (gzipped) 31.09 KB (0%)
@sentry/browser - Webpack (gzipped) 22.44 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 74.8 KB (+0.02% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 66.45 KB (+0.02% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 32.28 KB (+0.04% 🔺)
@sentry/browser - ES6 CDN Bundle (gzipped) 24.09 KB (0%)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 209.47 KB (+0.02% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 97.53 KB (+0.05% 🔺)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 72.08 KB (0%)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 35.3 KB (+0.05% 🔺)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 68.86 KB (+0.03% 🔺)
@sentry/react - Webpack (gzipped) 22.48 KB (0%)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 85.55 KB (+0.02% 🔺)
@sentry/nextjs Client - Webpack (gzipped) 49.66 KB (+0.03% 🔺)
@sentry-internal/feedback - Webpack (gzipped) 17.11 KB (0%)

@Lms24 Lms24 merged commit b86652a into develop Jan 15, 2024
@Lms24 Lms24 deleted the lms/ref-add-missing-span-deprecations branch January 15, 2024 17:16
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.

3 participants