Repository navigation
spec: metrics as two independent pipelines from one config - #34
Open
adhorodyski wants to merge 1 commit into
Open
adhorodyski wants to merge 1 commit into
adhorodyski wants to merge 1 commit into
Conversation
JS metrics use stock sdk-metrics and export from JS on every platform; native metrics use the native SDK and RNOtel.meter. Both read exportConfig.metrics, and native hands JS its resource and merged metrics config through the initialize result. Nothing crosses the seam per measurement. Also replaces exportConfig.url with one URL per signal (traces, metrics) and shared plus per-signal headers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Design only; nothing is implemented. Metrics are built separately after v0 and don't block 0.3.0.
What changes in the spec
exportConfig.urlis replaced by one URL per signal:exportConfig: { headers, traces: { url, headers }, metrics: { url, headers, temporalityPreference } }.sdk-metrics+exporter-metrics-otlp-proto, exported from JS on Android, iOS and web, with the same code everywhere.MeterProviderwithPeriodicMetricReaderandOtlpHttpMetricExporterin each native core, used throughRNOtel.meter.initializealso returns native's resource and the merged metrics config.MetricDatainitializers areinternal, so this would need a custom POST./v1/metricsroute on the fake collector<name>.metrics.otlp.jsonexpected file per scenario; a scenario without one must export no metricsmetrics-js,metrics-native,metrics-headers,metrics-off, andbackground-flushextended to native metricsOpen questions (§4.6.9)
service.instance.idper process start for fleet identity, or should we only document it?temporalityPreference?🤖 Generated with Claude Code