SentryBaggage.fromHeader constructor

SentryBaggage.fromHeader(
  1. String headerValue, {
  2. SentryLogger? logger,
})

Implementation

factory SentryBaggage.fromHeader(
  String headerValue, {
  SentryLogger? logger,
}) {
  final keyValues = _extractKeyValuesFromBaggageString(
    headerValue,
    logger: logger,
  );

  return SentryBaggage(keyValues, logger: logger);
}