Skip to content

Framework not being set #128

@mgalgs

Description

@mgalgs

Ever since I upgraded from 0.2.0-beta (yes, I was a few years out of date) to 1.5.0 my Rollbar items from my Flutter app haven't been getting a "Framework" value. So I have to filter by "UKNOWN" framework in my Rollbar items view in order to see issues from my app.

You can see in the following screenshot that after I shipped the new version of my app the framework field went empty (except for the odd report or two from folks running an old version of the app):

image

Am I missing something in initialization to get this set or this is a bug in the package?

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  PackageInfo packageInfo = await PackageInfo.fromPlatform();

  var config = Config(
    accessToken: '...',
    package: '...',
    codeVersion: packageInfo.version,
    handleUncaughtErrors: true,
    includePlatformLogs: true,
  );

  await Firebase.initializeApp(
    options: DefaultFirebaseOptions.currentPlatform,
  );

  await RollbarFlutter.run(config, () => runApp(MyApp()));
}

It's strange because if I click on an item and view its parameters I do see "flutter" in the framework field. But somehow that's not being populated in the rest of the UI or something.

image

Old rollbar version (note the Flutter logo):

image

New rollbar version (note the lack of Flutter logo):

image

So whatever is causing the Flutter logo to be populated must be separate from the "framework" value in the "Params" list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions