Extension API: OpenTelemetry Exporter
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- json, rust
- Domínio
- backend-api-design, observability
Direção de pesquisa
Start by reading the prerequisites linked in the issue: #1782 and #1792 for JSON-RPC extensions, and #1080 for extension options; the full specification depends on those implementations. The issue proposes an OpenTelemetry extension capability that exports tracing spans, but leaves its full specification open. Done means defining the extension API and supporting the listed trace export requirements; the payload names no files or tests.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Summary of the new feature / enhancement
As an infrastructure engineer,
I want to export the OpenTelemetry data from DSC invocations,
So that I can review and explore performance and behavior.
As an integrating developer,
I want to consume OpenTelemetry from DSC,
So that I can integrate that data into my own OpenTelemetry.
With the merging of #1795, the DSC engine can support gathering OpenTelemetry tracing data from an invocation. However, the initial implementation uses a noop span exporter, so the data is discarded. There's no way to emit the telemetry to an OpenTelemetry collector or a backend that accepts OpenTelemetry data.
DSC should provide two supported exporters that are available in the DSC release package:
- Exporting to the OpenTelemetry Collector, which is the recommendation for production environments.
- Exporting spans to a file as JSON Lines, per OpenTelemetry Protocol File Exporter, which is convenient for testing purposes and when debugging without a visualization backend.
Instead of implementing this functionality directly in the engine, and to ensure we can support emitting OpenTelemetry to any collector or backend, we should define an extension API that defines where to emit telemetry.
Proposed technical implementation details (optional)
We should add a new capability to DSC extensions for OpenTelemetry. An extension with the otel capability indicates that the extension handles exporting OpenTelemetry data from DSC.
Initially, we need to support exporting tracing spans. We can defer exporting metrics and logs, as we don't currently collect either.
Implementing this capability has a few prerequisites that need to be in place before we can fully implement the built-in extensions:
-
We need to enable extensions to run as JSON-RPC processes, as with the proposal for resources (see #1782 and #1792). Without this functionality, DSC would need to spin up the extension every time we need to batch emit tracing data. It will be much more coherent to start the extension as a JSON-RPC server and send the tracing data to it as part of the batch exporting in the engine.
-
We need to add support for extension options (see #1080). Without users being able to define options the extensions will either need to be locked to a hardcoded export endpoint or document controlling environment variables separately from DSC.
Since this functionality is specific to forwarding telemetry for DSC and it's very reasonable for users to configure their exporters to work with different targets, we must support ergonomic option definitions for these extensions.
The following list clarifies some design proposals assuming those prerequisites are implemented. Full spec depends on those implementations.
-
DSC uses batch exporting for tracing spans, sending the data to the extension over JSON-RPC as OTLP JSON. For more information on OTLP JSON, see:
-
DSC handles collecting and propagating tracing spans and events from all sources in an invocation except from the OpenTelemetry extension. I think we should avoid having the extension emit tracing events to DSC for DSC to send back to the extension.
-
If the DSC settings indicate that the engine should collect and export tracing data, the engine must start the appropriate extension as early as possible and ensure that all spans are emitted before shutdown, even in the case of interruption or failure.
-
Initially, collecting and exporting OpenTelemetry data should be disabled by default.
-
OpenTelemetry extensions should only support JSON-RPC invocation.
-
OpenTelemetry extensions should not implement any filtering on tracing level. They should rely on DSC to handle that functionality (since it's built into the propagation/export logic). The extensions may support other forms of filtering but aren't required to.
-
OpenTelemetry extensions should indicate the telemetry kinds they support from the following list:
traces,metrics, andlogs. Initially, DSC only supports traces, but we should ensure that we can support forwarding those types of telemetry in the future.
- Linguagem predominante
- Rust
- Estrelas
- 546
- Forks
- 84
- Merge médio
- 2d 9h
- PRs com merge (30d)
- 25
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de PowerShell/DSC
-
CHANGELOG.md out of dateAbertaIssue-Bug Need-Review
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 85/100
PowerShell/DSC#1832 ·
Mantenedores costumam responder em até 1 dia
-
Issue-Bug Need-Review
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
PowerShell/DSC#1831 ·
Mantenedores costumam responder em até 1 dia
-
Issue-Enhancement Needs Triage
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 22/100
PowerShell/DSC#1811 ·
Mantenedores costumam responder em até 1 dia
-
Issue-Enhancement Needs Triage
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 30/100
PowerShell/DSC#1812 ·
Mantenedores costumam responder em até 1 dia
-
Issue-Enhancement Needs Triage
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 12/100
PowerShell/DSC#1813 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de PowerShell/DSC
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 2 dias
-
autofixer: follow-up
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
tursodatabase/turso#12531 ·
Mantenedores costumam responder em até 1 dia
-
bug help wanted ui
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
userFRM/egui-charts#4292 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
Tripstack-Corp/spyc#1352 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
vercel-labs/agent-browser#2777 ·
Mantenedores costumam responder em até 1 dia