Add new attributes to simplify generating span names

Aperta
#87 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma

Direzione di ricerca

Esamina le convenzioni esistenti per gli attributi degli span file, FAAS, middleware, resource e UI, quindi confrontale con i casi elencati in issue #87. Il risultato atteso è un insieme definito di nomi degli attributi e semantiche accettati per le categorie di span interessate.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Feature Spans

Right now, it's not convenient to generate a name attribute for some spans. The most flexible case is to be able to create a span name from available attributes, but sometimes the attributes are not there, which makes life harder.

e.g., Imagine the product takes in a span with the op "file.write", and wants to create a name field, which should be "File read". The span name "File read" could be conveniently generated from attributes if the span had an attribute called file.operation (or similar), then the SDK (or product code) could generate the name by concatenating the word "File" and the file.operation attribute.

Here are some cases that would benefit from extra attributes:

  • File spans don't have an attribute to represent the filesystem operation. Possible solution: file.operation attribute that contains a string like "read"

  • FAAS function spans don't have an attribute that represents the FAAS provider. Possible solution: faas.name attribute that contains a string like "AWS Lambda". In OTLP this is an attribute on the resource!

  • Middleware spans don't have an attribute to represent the name of the middleware. Possible solution: middleware.name attribute

  • Middleware spans don't have an attribute to represent the name of the framework. Possible solution: http.framework attribute that contains a string like "Django"

  • Resource spans don't have an attribute to represent the resource type. Possible solution resource.type attribute that contains a string like "img" or "css"

  • UI spans don't have an attribute that represents the action type. Possible solution: ui.action.type attribute that contains a string like "click"

Lingua principale
TypeScript
Stelle
16
Fork
8
Merge medio
3g 15h
PR unite (30g)
76

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getsentry/sentry-conventions

Tutte le issue di getsentry/sentry-conventions

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.