otel_url_launcher 0.1.0 copy "otel_url_launcher: ^0.1.0" to clipboard
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 = launch or can_launch

Useful for tracing deep-link follow-throughs and external-app launches as part of a user journey.

Suppression: runWithoutUrlLauncherInstrumentationAsync.

License #

Apache 2.0

0
likes
160
points
68
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

OpenTelemetry instrumentation for `package:url_launcher`. Wraps launchUrl / canLaunchUrl with url.* semconv spans.

Homepage
Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

dartastic_opentelemetry, dartastic_opentelemetry_api, flutter, url_launcher

More

Packages that depend on otel_url_launcher