-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from bugsnag/release-v1.3.0
Release v1.3.0
- Loading branch information
Showing
47 changed files
with
977 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.2.1 | ||
1.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...es/fixture_resources/lib/scenarios/auto_instrument_navigation_complex_defer_scenario.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...ixture_resources/lib/scenarios/auto_instrument_navigation_nested_navigation_scenario.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...s/fixture_resources/lib/scenarios/auto_instrument_navigation_with_view_load_scenario.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
features/fixture_resources/lib/scenarios/correlation_null_scenario.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
features/fixture_resources/lib/scenarios/correlation_simple_scenario.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
features/fixture_resources/lib/scenarios/custom_app_version_scenario.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
features/fixture_resources/lib/scenarios/custom_enabled_release_stage_scenario.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
features/fixture_resources/lib/scenarios/custom_release_stage_scenario.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
features/fixture_resources/lib/scenarios/custom_service_name_scenario.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
features/fixture_resources/lib/scenarios/custom_span_attributes_scenario.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import 'package:bugsnag_flutter_performance/bugsnag_flutter_performance.dart'; | ||
|
||
import 'scenario.dart'; | ||
|
||
class CustomSpanAttributesScenario extends Scenario { | ||
@override | ||
Future<void> run() async { | ||
await startBugsnag(onSpanEndCallbacks: [ | ||
_setAttributesAndThrow, | ||
_discardUnwantedSpan, | ||
_setAttributes, | ||
]); | ||
setMaxBatchSize(1); | ||
doSimpleSpan('CustomSpanAttributesScenarioDiscaredSpan'); | ||
final span = | ||
bugsnag_performance.startSpan('CustomSpanAttributesScenarioSpan'); | ||
span.setAttribute('customAttribute1', 42); | ||
span.setAttribute('customAttribute2', 'Test'); | ||
span.setAttribute('customAttribute3', 1); | ||
span.end(); | ||
span.setAttribute('customAttribute6', 'T'); | ||
} | ||
|
||
Future<bool> _setAttributesAndThrow(BugsnagPerformanceSpan span) async { | ||
span.setAttribute('customAttribute1', 'C'); | ||
throw Exception(''); | ||
} | ||
|
||
Future<bool> _discardUnwantedSpan(BugsnagPerformanceSpan span) async { | ||
if (span.name == 'CustomSpanAttributesScenarioDiscaredSpan') { | ||
return false; | ||
} | ||
return true; | ||
} | ||
|
||
Future<bool> _setAttributes(BugsnagPerformanceSpan span) async { | ||
span.setAttribute('customAttribute3', 2); | ||
span.setAttribute('customAttribute3', 3); | ||
span.setAttribute('customAttribute2', null); | ||
span.setAttribute('customAttribute4', 42.0); | ||
span.setAttribute('customAttribute5', [ | ||
'customString', | ||
42, | ||
true, | ||
43.0, | ||
]); | ||
return true; | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
features/fixture_resources/lib/scenarios/custom_span_attributes_with_limits_scenario.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import 'package:bugsnag_flutter_performance/bugsnag_flutter_performance.dart'; | ||
|
||
import 'scenario.dart'; | ||
|
||
class CustomSpanAttributesWithLimitsScenario extends Scenario { | ||
@override | ||
Future<void> run() async { | ||
await startBugsnag( | ||
attributeCountLimit: 8, | ||
attributeStringValueLimit: 20, | ||
attributeArrayLengthLimit: 6, | ||
onSpanEndCallbacks: [ | ||
_setAttributes, | ||
]); | ||
setMaxBatchSize(1); | ||
final span = bugsnag_performance | ||
.startSpan('CustomSpanAttributesWithLimitsScenarioSpan'); | ||
final tooLongKey = 'a' * 129; | ||
span.setAttribute('customAttribute1', 42); | ||
span.setAttribute(tooLongKey, 'Test'); | ||
span.setAttribute('customAttribute2', 1); | ||
span.setAttribute('customAttribute3', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); | ||
span.setAttribute( | ||
'customAttribute4', 'VeryLongStringAttributeValueThatExceedsTheLimit'); | ||
span.setAttribute('customAttribute5', 42.0); | ||
span.setAttribute('customAttribute6', 'Dropped'); | ||
span.end(); | ||
} | ||
|
||
Future<bool> _setAttributes(BugsnagPerformanceSpan span) async { | ||
span.setAttribute('customAttribute7', 'Droppedtoo'); | ||
span.setAttribute('customAttribute2', 'NotDropped'); | ||
return true; | ||
} | ||
} |
1 change: 0 additions & 1 deletion
1
features/fixture_resources/lib/scenarios/dio_callback_cancel_span.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
features/fixture_resources/lib/scenarios/dio_callback_edit_scenario.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
features/fixture_resources/lib/scenarios/disable_custom_release_stage_scenario.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
features/fixture_resources/lib/scenarios/manual_span_scenario.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
features/fixture_resources/lib/scenarios/max_batch_age_scenario.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.