You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/lib/cross_agent_tests/distributed_tracing/README.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,12 @@ the agent under test. Here's what the various fields in each test case mean:
14
14
|`account_id`| The account id the agent would receive on connect. |
15
15
|`web_transaction`| Whether the transaction that's tested is a web transaction or not. |
16
16
|`raises_exception`| Whether to simulate an exception happening within the transaction or not, resulting in a transaction error event. |
17
-
|`force_sampled_true`| Whether to force a transaction to be sampled or not. |
17
+
|`root`| The sampler to use for transactions at the root of a trace. |
18
+
|`remote_parent_sampled`| The sampler to use for transactions with a remote parent. |
19
+
|`remote_parent_not_sampled`| The sampler to use for transactions with a remote parent that is not sampled. |
20
+
|`expected_priority_between`| The inclusive range of the expected priority value on the generated transaction event. |
21
+
|`force_adaptive_sampled_true`| Whether to force a transaction to be sampled or not when the adaptive sampler is used. |
22
+
|`ratio`| The ratio to use for all of the trace ID ratio samplers defined in the test. For testing purposes we are not defining different ratios for each trace ID ratio sampler instance. If that is necessary, we will need a different way to configure the ratios. |
18
23
|`transport_type`| The transport type for the inbound request. |
19
24
|`inbound_headers`| The headers you should mock coming into the agent. |
20
25
|`outbound_payloads`| The exact/expected/unexpected values for outbound `w3c` headers. |
@@ -23,6 +28,14 @@ the agent under test. Here's what the various fields in each test case mean:
23
28
|`span_events_enabled`| Whether span events are enabled in the agent or not. |
24
29
|`transaction_events_enabled`| Whether transaction events are enabled in the agent or not. |
25
30
31
+
The samplers that can referenced in the `root`, `remote_parent_sampled`, and `remote_parent_not_sampled` fields are:
32
+
33
+
-`default`: Use the adaptive sampler.
34
+
-`adaptive`: Use the adaptive sampler.
35
+
-`trace_id_ratio_based`: Use the trace ID ratio sampler.
36
+
-`always_on`: Use the always on sampler.
37
+
-`always_off`: Use the always off sampler.
38
+
26
39
The `outbound_payloads` and `intrinsics` field can have nested values, for example:
0 commit comments