Comments (3)
Hello,
this API has only been added in a more recent version of the SDK.
Please update to the latest version (and while you're at it, you can remove @sentry/tracing
from your package.json, it is no longer needed - instead directly import from @sentry/node
).
The problem is probably that your versions do not align, all sentry packages need to have the same version (which is why we now no longer recommend installing multiple sentry packages at all - just @sentry/node
should be enough!).
from sentry-javascript.
sure enough, The index.d.ts file content is missing getSpanStatusFromHttpCode
. Here's the full content inside node_modules
export type { ClientClass } from './sdk';
export type { AsyncContextStrategy, Carrier, Layer, RunWithAsyncContextOptions } from './hub';
export type { OfflineStore, OfflineTransportOptions } from './transports/offline';
export * from './tracing';
export { addBreadcrumb, captureException, captureEvent, captureMessage, configureScope, startTransaction, setContext, setExtra, setExtras, setTag, setTags, setUser, withScope, captureCheckIn, } from './exports';
export { getCurrentHub, getHubFromCarrier, Hub, makeMain, getMainCarrier, runWithAsyncContext, setHubOnCarrier, ensureHubOnCarrier, setAsyncContextStrategy, } from './hub';
export { makeSession, closeSession, updateSession } from './session';
export { SessionFlusher } from './sessionflusher';
export { addGlobalEventProcessor, Scope } from './scope';
export { getEnvelopeEndpointWithUrlEncodedAuth, getReportDialogEndpoint } from './api';
export { BaseClient } from './baseclient';
export { initAndBind } from './sdk';
export { createTransport } from './transports/base';
export { makeOfflineTransport } from './transports/offline';
export { makeMultiplexedTransport } from './transports/multiplexed';
export { SDK_VERSION } from './version';
export { getIntegrationsToSetup } from './integration';
export { FunctionToString, InboundFilters } from './integrations';
export { prepareEvent } from './utils/prepareEvent';
export { createCheckInEnvelope } from './checkin';
export { hasTracingEnabled } from './utils/hasTracingEnabled';
export { DEFAULT_ENVIRONMENT } from './constants';
import * as Integrations from './integrations';
export { Integrations };
//# sourceMappingURL=index.d.ts.map
versions in package.json
"@sentry/node": "^7.56.0",
"@sentry/tracing": "^7.106.1",
from sentry-javascript.
Update to latest solved issue
from sentry-javascript.
Related Issues (20)
- Unable to run profiling-node on 32-bit operating system HOT 1
- nextjs-14 (latest) Test Failed
- nextjs-15 (canary) Test Failed
- nextjs-15 (latest) Test Failed
- nextjs-14 (canary) Test Failed
- nextjs-app-dir (latest) Test Failed
- Sentry creates separate otel context for dynamic pages when using @vercel/otel HOT 2
- react-create-hash-router (canary) Test Failed
- react-router-6 (canary) Test Failed
- `@sentry/astro` breaks `drizzle-orm` in Astro HOT 15
- node http integration: ignoreIncomingRequests() option does not work HOT 12
- Pageloads traces aren't being captured by sentry/nextjs HOT 2
- Source maps exist but not applied HOT 4
- Ability to grab the eventID of an error HOT 2
- Gaps in a transaction's Trace View lead to very large, potentially inaccurate durations HOT 1
- Allow manual screenshot upload in User Feedback widget HOT 1
- Multiple Events Created for Single Error Event: Remix HOT 2
- Firefox OOM when capturing canvas replays
- Aggregate replays from the same session into a single page HOT 5
- tracesSampler "name" property missing route name with Fastify integration HOT 5
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.