Extension API: OpenTelemetry Exporter
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- json, rust
- Bereich
- backend-api-design, observability
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Rust
- Sterne
- 546
- Forks
- 84
- Ø Merge
- 2 T. 9 Std.
- Gemergte PRs (30 T.)
- 25
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus PowerShell/DSC
-
CHANGELOG.md out of dateOffenIssue-Bug Need-Review
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 85/100
PowerShell/DSC#1832 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Issue-Bug Need-Review
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
PowerShell/DSC#1831 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Issue-Enhancement Needs Triage
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 22/100
PowerShell/DSC#1811 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Issue-Enhancement Needs Triage
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 30/100
PowerShell/DSC#1812 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Issue-Enhancement Needs Triage
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 12/100
PowerShell/DSC#1813 ·
Maintainer antworten meist innerhalb von 1 Tag
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 2 Tagen
-
autofixer: follow-up
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
tursodatabase/turso#12531 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug help wanted ui
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
userFRM/egui-charts#4292 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
Tripstack-Corp/spyc#1352 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
vercel-labs/agent-browser#2777 ·
Maintainer antworten meist innerhalb von 1 Tag