Comments (6)
The Sentry.startSpan()
API seems to be more honest about what it does, the callback argument is explicitly marked as nullable.
from sentry-javascript.
Wait, what? Importing @sentry/tracing
makes it work?!?
import * as Sentry from "@sentry/node"
import "@sentry/tracing"
const transaction = Sentry.startTransaction({
name: `test`,
})
console.log('tx', transaction)
Still, a function claiming to never return undefined returning undefined is⦠unexpected.
from sentry-javascript.
Generally speaking, I agree, this is stupid. We made a trade-off for tree-shaking.
You must be on a pretty old SDK version though, as when using startTransaction()
after init()
from @sentry/node
should should always return a transaction.
from sentry-javascript.
I tested with 7.94.1, which is the latest version as of now.
https://codesandbox.io/p/devbox/affectionate-breeze-r93zts
from sentry-javascript.
@wereHamster You would need to add a call to init()
. However, I should add startTransaction
and startChild
are deprecated and are soon gonna be removed. They are replaced by Sentry.startSpan()
which has correct typing.
from sentry-javascript.
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community
, I will leave it alone ... forever!
"A weed is but an unloved flower." β Ella Wheeler Wilcox π₯
from sentry-javascript.
Related Issues (20)
- Building nuxt3 project moves Sentry functions (captureMessage,captureException ..) under .default HOT 2
- Add support for DigitalOcean and Twilio serverless functions HOT 4
- Can I always send a transaction when sending an error? HOT 3
- Local variables not recorded when they are falsey HOT 1
- Update docs to reflect changes in DDM integration API
- Setting experimental `metricsAggregator: true` does not respect `enabled` setting and hangs on connecting HOT 3
- Capture transaction name for errors (v8) HOT 6
- Add edge runtime support to TRPC middleware handler HOT 1
- When multiple errors are caught, the wrong one is used for mechanism and description HOT 2
- Type 'ProfilingIntegration' is not assignable to type 'Integration' HOT 8
- Support chunking sentry-related libraries in Vite without explicit config HOT 1
- Sentry RangeError Invalid string length JSON.stringify(<anonomys>) HOT 1
- "SentryWebpackPlugin is not a constructor" error during Next 14 build HOT 18
- Automatic initialization of the Loader Script can be set HOT 8
- Backport for v7.104.0 HOT 1
- Backport 7.106.0
- Introduce internal event "quality score" for outgoing events HOT 6
- Feedbacks sent via User Feedback API not applying environment from Scope HOT 3
- Sentry filenames remapped in webpack build of browser extension HOT 6
- @sentry/vue include httpClientIntegration HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentry-javascript.