Tracing: populate tags when creating the activity, not later

Abierto
#6,343 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 6 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
csharp, postgresql

Línea de trabajo

Start by reading the linked OpenTelemetry database span specification and tracing code paths that create activities and add tags, including Enrich. Check how IsAllDataRequested affects tag population and which attributes are only available later. Done means the applicable tags are populated at activity creation when available, with the scope of any required refactor established.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

diagnostics

The specification states:

The following attributes can be important for making sampling decisions and SHOULD be provided at span creation time (if provided at all):

db.collection.name
db.namespace
db.operation.name
db.query.summary
db.query.text
db.system.name
server.address
server.port

We don't currently do this, but rather add the tags later, after creation.

Note that we currently only add the tags when the created activity has IsAllDataRequested: true, and I'm not quite sure how to add them before the activity is created... In addition some of the tags are added later in Enrich, so fully doing this would require a deeper refactor.

Lenguaje dominante
C#
Estrellas
3.7k
Forks
890
Merge medio
4 d 11 h
PR fusionados (30 d)
19

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

  • Sin Dockerfile ni archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de npgsql/npgsql

Todos los issues de npgsql/npgsql

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.