-
Notifications
You must be signed in to change notification settings - Fork 0
/
unmanaged.feature
87 lines (79 loc) · 3.99 KB
/
unmanaged.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Feature: Unmanaged spans
Background:
Given I enter unmanaged traces mode
Scenario: Entering unmanaged mode via the OTel environment variable
Given I set environment variable "OTEL_TRACES_SAMPLER" to "alwayson"
When I start the service "app"
Then I run "ManualTraceScenario"
When I wait to receive a trace
Then the sampling request "Bugsnag-Span-Sampling" header equals "1.0:0"
And the trace "Bugsnag-Span-Sampling" header is not present
And the trace payload field "resourceSpans.0.resource" string attribute "service.name" equals "basic app"
And the trace payload field "resourceSpans.0.resource" string attribute "service.version" equals "1.22.333"
And the trace payload field "resourceSpans.0.resource" string attribute "device.id" equals "1"
And the trace payload field "resourceSpans.0.resource" string attribute "deployment.environment" equals "staging"
And a span named "test span 1" has the following properties:
| property | value |
| kind | 1 |
| traceState | |
| droppedAttributesCount | 0 |
| droppedEventsCount | 0 |
| droppedLinksCount | 0 |
| status.code | 0 |
| status.message | |
And a span named "test span 1" contains the attributes:
| attribute | type | value |
| span.custom.age | intValue | 0 |
| bugsnag.sampling.p | doubleValue | 1.0 |
And a span named "test span 2" has the following properties:
| property | value |
| kind | 1 |
| traceState | |
| droppedAttributesCount | 0 |
| droppedEventsCount | 0 |
| droppedLinksCount | 0 |
| status.code | 0 |
| status.message | |
And a span named "test span 2" contains the attributes:
| attribute | type | value |
| span.custom.age | intValue | 10 |
| bugsnag.sampling.p | doubleValue | 1.0 |
And a span named "test span 3" has the following properties:
| property | value |
| kind | 1 |
| traceState | |
| droppedAttributesCount | 0 |
| droppedEventsCount | 0 |
| droppedLinksCount | 0 |
| status.code | 0 |
| status.message | |
And a span named "test span 3" contains the attributes:
| attribute | type | value |
| span.custom.age | intValue | 20 |
| bugsnag.sampling.p | doubleValue | 1.0 |
And a span named "test span 4" has the following properties:
| property | value |
| kind | 1 |
| traceState | |
| droppedAttributesCount | 0 |
| droppedEventsCount | 0 |
| droppedLinksCount | 0 |
| status.code | 0 |
| status.message | |
And a span named "test span 4" contains the attributes:
| attribute | type | value |
| span.custom.age | intValue | 30 |
| bugsnag.sampling.p | doubleValue | 1.0 |
And a span named "test span 5" has the following properties:
| property | value |
| kind | 1 |
| traceState | |
| droppedAttributesCount | 0 |
| droppedEventsCount | 0 |
| droppedLinksCount | 0 |
| status.code | 0 |
| status.message | |
And a span named "test span 5" contains the attributes:
| attribute | type | value |
| span.custom.age | intValue | 40 |
| bugsnag.sampling.p | doubleValue | 1.0 |