otel_url_launcher 0.1.0
otel_url_launcher: ^0.1.0 copied to clipboard
OpenTelemetry instrumentation for `package:url_launcher`. Wraps launchUrl / canLaunchUrl with url.* semconv spans.
otel_url_launcher #
OpenTelemetry instrumentation for
package:url_launcher.
import 'package:otel_url_launcher/otel_url_launcher.dart';
await tracedLaunchUrl(Uri.parse('https://example.com'));
final ok = await tracedCanLaunchUrl(Uri.parse('mailto:hi@example.com'));
Each call opens a CLIENT span:
- name:
url_launcher launch/url_launcher can_launch url.full = <full URL>url.scheme = <scheme>(e.g.https,mailto,tel)url_launcher.operation = launchorcan_launch
Useful for tracing deep-link follow-throughs and external-app launches as part of a user journey.
Suppression: runWithoutUrlLauncherInstrumentationAsync.
License #
Apache 2.0