Commit b3747f3
authored
Moved otel support for polling into poller (#3279)
Removed custom code from `create_certificate` API code and moved the
corresponding logic into the `Poller`.
This involved adding an additional parameter to the `callback` for
`Poller::with_callback` that provides the `ctx` used for the pipeline.
Bonus: Instead of using a tuple to maintain the state of the "stream"
created by the `Poller`, encapsulate the state in a structure to make it
easier to modify the state of the "stream" moving forward (when there
were 3 fields in the state, it wasn't a huge deal, but with 5 fields, it
was getting unwieldy).
NOTE: This is still a draft PR, the next step is to work on similar
changes for pagers.1 parent d66bd8b commit b3747f3
File tree
12 files changed
+517
-124
lines changed- sdk
- core
- azure_core_test/src
- azure_core
- src/http
- typespec_client_core
- src/http
- keyvault
- azure_security_keyvault_certificates
- src
- azure_security_keyvault_secrets/tests
12 files changed
+517
-124
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
314 | 318 | | |
315 | 319 | | |
316 | 320 | | |
317 | | - | |
| 321 | + | |
318 | 322 | | |
319 | 323 | | |
320 | 324 | | |
| |||
830 | 834 | | |
831 | 835 | | |
832 | 836 | | |
| 837 | + | |
833 | 838 | | |
834 | 839 | | |
835 | 840 | | |
| |||
855 | 860 | | |
856 | 861 | | |
857 | 862 | | |
| 863 | + | |
858 | 864 | | |
859 | 865 | | |
860 | 866 | | |
861 | 867 | | |
| 868 | + | |
862 | 869 | | |
863 | 870 | | |
864 | 871 | | |
| |||
888 | 895 | | |
889 | 896 | | |
890 | 897 | | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
891 | 904 | | |
892 | 905 | | |
893 | 906 | | |
| |||
905 | 918 | | |
906 | 919 | | |
907 | 920 | | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
908 | 932 | | |
909 | 933 | | |
910 | 934 | | |
| |||
923 | 947 | | |
924 | 948 | | |
925 | 949 | | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
926 | 959 | | |
927 | 960 | | |
928 | 961 | | |
| |||
0 commit comments