SentryEnvelope.fromMetrics constructor
SentryEnvelope.fromMetrics(
- Map<
int, Iterable< metricsBuckets,Metric> > - SdkVersion sdkVersion, {
- String? dsn,
Create a SentryEnvelope containing one SentryEnvelopeItem which holds the Metric
data.
Implementation
factory SentryEnvelope.fromMetrics(
Map<int, Iterable<Metric>> metricsBuckets,
SdkVersion sdkVersion, {
String? dsn,
}) {
return SentryEnvelope(
SentryEnvelopeHeader(
SentryId.newId(),
sdkVersion,
dsn: dsn,
),
[SentryEnvelopeItem.fromMetrics(metricsBuckets)],
);
}