getsentry / getsentry/sentry-javascript

feat: add `CODE_FUNCTION_NAME` to sentry-conventions, set to route handler function name

Offen
#23,871 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Core Feature javascript Traces
Vorherrschende Sprache
TypeScript
Sterne
8.7k
Forks
1.8k
Ø Merge
1 T. 17 Std.
Gemergte PRs (30 T.)
523

Beschreibung

### Description

Re: https://github.com/getsentry/sentry-javascript/pull/23614#discussion_r3896481634

@Lms24 suggests:

> we might wanna look into if we should add something like a `{{code.function.name}}` template to the request handler name [rules](https://getsentry.github.io/sentry-conventions/names/#web_server-request-handler). But if we do, we can tackle it as a follow up

- Update sentry-conventions to make `CODE_FUNCTION_NAME` a template to optionally hold the request handler function name.
- Update request handlers to follow the convention.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by locating the sentry-conventions request-handler naming rules and the request-handler implementations in this repository. Update the convention so CODE_FUNCTION_NAME can optionally contain the handler function name, then bring the request handlers into compliance and verify the relevant checks pass.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
api, backend
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Aktiv
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.