getsentry / sentry-docs

Sentry's documentation (and tools to build it)
https://docs.sentry.io
Other
323 stars 1.38k forks source link

Deprecated function still shown in latest Node documentation #10563

Open cstavitsky opened 4 days ago

cstavitsky commented 4 days ago

Core or SDK?

Platform/SDK

Which part? Which one?

Node.js

Description

Opening this issue as feedback from a trialing customer:

https://docs.sentry.io/platforms/javascript/guides/node/enriching-events/transaction-name/

In that transaction name article it mentions using setTransactionName like so: Sentry.getCurrentScope().setTransactionName("UserListView");

But our engineer was getting undefined errors. Then they found the deprecations list and that function is included. https://docs.sentry.io/platforms/javascript/guides/gatsby/migration/v7-to-v8/v7-deprecations/#deprecate-scopesettransactionname So we weren't sure if this was just documentation needed an update or what but figured we would pass it along in case others ran into it

Suggested Solution

This code snippet should be updated to use a non-deprecated function from the v8 SDK

getsantry[bot] commented 4 days ago

Assigning to @getsentry/support for routing ⏲️