This issue captures the protocol/envelope portion of #997, so later client work can build on a small, reviewable base.
Scope from #997
Details
Extract only the trace metric model and envelope container implementation described in the trace metrics spec: metric type enum, metric payload fields, trace_metric envelope item type, and encode/decode handling including correct content type and item count behavior. Keep this part free of client capture or macro API concerns, and include round-trip coverage in sentry-types to show metric items survive serialization/deserialization intact.
This issue captures the protocol/envelope portion of #997, so later client work can build on a small, reviewable base.
Scope from #997
sentry-types/src/protocol/v7.rssentry-types/src/protocol/envelope.rsDetails
Extract only the trace metric model and envelope container implementation described in the trace metrics spec: metric type enum, metric payload fields,
trace_metricenvelope item type, and encode/decode handling including correct content type and item count behavior. Keep this part free of client capture or macro API concerns, and include round-trip coverage insentry-typesto show metric items survive serialization/deserialization intact.