-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(react-native): test custom attributes on native spans
- Loading branch information
1 parent
5fe86a3
commit f741101
Showing
2 changed files
with
27 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
@native_integration | ||
Feature: Native Integration | ||
|
||
Scenario: Native Integration | ||
Scenario: First class custom spans are delegated to the native SDK | ||
When I run 'NativeIntegrationScenario' | ||
And I wait to receive 2 spans | ||
And I wait to receive 2 traces | ||
Then a span named "Native child span" has a parent named "JS parent span" | ||
And a span named "Native child span" contains the attributes: | ||
| attribute | type | value | | ||
| bugsnag.span.category | stringValue | custom | | ||
| bugsnag.span.first_class | boolValue | true | | ||
| custom.native.attribute | stringValue | Native span attribute | | ||
| attribute | type | value | | ||
| bugsnag.span.category | stringValue | custom | | ||
| bugsnag.span.first_class | boolValue | true | | ||
| custom.string.attribute | stringValue | test | | ||
| custom.int.attribute | intValue | 12345 | | ||
| custom.double.attribute | doubleValue | 123.45 | | ||
| custom.stringarray.attribute | arrayValue | [{ stringValue: 'a' }, { stringValue: 'b' }, { stringValue: 'b' }] | | ||
| custom.intarray.attribute | arrayValue | [{ intValue: 1 }, { intValue: 2 }, { intValue: 3 }] | | ||
| custom.doublearray.attribute | arrayValue | [{ doubleValue: 1.1 }, { doubleValue: 2.2 }, { doubleValue: 3.3 }] | | ||
|
||
And a span named "JS parent span" contains the attributes: | ||
| attribute | type | value | | ||
| bugsnag.span.category | stringValue | custom | | ||
| custom.js.attribute | stringValue | JS span attribute | | ||
| attribute | type | value | | ||
| bugsnag.span.category | stringValue | custom | | ||
| custom.js.attribute | stringValue | JS span attribute | | ||
|
||
And the trace payload field "resourceSpans.0.resource" string attribute "telemetry.sdk.name" equals "bugsnag.performance.reactnative" | ||
Then I discard the oldest trace | ||
And the trace payload field "resourceSpans.0.resource" string attribute "telemetry.sdk.name" equals the platform-dependent string: | ||
| ios | bugsnag.performance.cocoa | | ||
| android | bugsnag.performance.android | |