Define registry api in api gem

Abierto
#2,154 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
ruby

Línea de trabajo

Comienza revisando las relaciones de dependencia descritas entre las gems instrumentation library, base, registry y api, y después examina cómo se expone la implementación actual de registry. Se considera terminado cuando la gem api proporciona una API de registry, de modo que instrumentation dependa únicamente de la API, mientras que las aplicaciones y los proveedores puedan elegir o implementar la registry.

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

Descripción

keep

Currently we have the following awkward situation.

  • Instrumentation Library depends on base
  • Base depends on registry (complete implementation)
  • Registry depends on api

By Having the instrumentation library depend on the registry implementation, this appears to go against the below:

This allows end users to consume API only without also consuming the implementation

Third party libraries and frameworks that add instrumentation to their code will have a dependency only on the API of OpenTelemetry client. The developers of third party libraries and frameworks do not care (and cannot know) what specific implementation of OpenTelemetry is used in the final application.

The developers of the final application normally decide how to configure OpenTelemetry SDK and what extensions to use.

To Address this I would propose we introduce a registry api module within the api gem which removes the need for instrumentation to take a dependency on the registry gem.

Further benefit would be that vendors who can implement their own registry using our api and that allow application developers to choose what registry to use as per above.

Lenguaje dominante
Ruby
Estrellas
613
Forks
306
Merge medio
3 d 11 h
PR fusionados (30 d)
21

Preparar el entorno

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 open-telemetry/opentelemetry-ruby

Todos los issues de open-telemetry/opentelemetry-ruby

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.