|
3 | 3 | // ===== UNSUPPORTED ===== |
4 | 4 |
|
5 | 5 | final class KphpDiv { |
6 | | - /** @kphp-extern-func-info stub generation-required */ |
| 6 | + /** @kphp-extern-func-info stub */ |
7 | 7 | private function __construct(); |
8 | 8 |
|
| 9 | + /** @kphp-extern-func-info stub */ |
9 | 10 | function generateTraceCtxForChild(int $div_id, int $trace_flags): tuple(int, int); |
10 | 11 |
|
| 12 | + /** @kphp-extern-func-info stub */ |
11 | 13 | function assignTraceCtx(int $int1, int $int2, ?int $override_div_id): int; |
12 | 14 |
|
13 | | - /** @kphp-extern-func-info stub generation-required */ |
| 15 | + /** @kphp-extern-func-info stub */ |
14 | 16 | function getStartTimestamp(): float; |
15 | 17 |
|
16 | | - /** @kphp-extern-func-info stub generation-required */ |
| 18 | + /** @kphp-extern-func-info stub */ |
17 | 19 | function getEndTimestamp(): float; |
18 | 20 | } |
19 | 21 |
|
20 | 22 | final class KphpSpan { |
| 23 | + /** @kphp-extern-func-info stub */ |
21 | 24 | private function __construct(); |
22 | 25 |
|
| 26 | + /** @kphp-extern-func-info stub */ |
23 | 27 | function addAttributeString(string $key, string $value) ::: void; |
24 | 28 |
|
| 29 | + /** @kphp-extern-func-info stub */ |
25 | 30 | function addAttributeInt(string $key, int $value) ::: void; |
26 | | - /** @kphp-extern-func-info stub generation-required */ |
| 31 | + |
| 32 | + /** @kphp-extern-func-info stub */ |
27 | 33 | function addAttributeFloat(string $key, float $value) ::: void; |
28 | | - /** @kphp-extern-func-info stub generation-required */ |
| 34 | + |
| 35 | + /** @kphp-extern-func-info stub */ |
29 | 36 | function addAttributeBool(string $key, bool $value) ::: void; |
30 | | - /** @kphp-extern-func-info stub generation-required */ |
| 37 | + |
| 38 | + /** @kphp-extern-func-info stub */ |
31 | 39 | function addAttributeEnum(string $key, int $enum_id, int $value) ::: void; |
32 | 40 |
|
| 41 | + /** @kphp-extern-func-info stub */ |
33 | 42 | function addEvent(string $name, ?float $timestamp = null): KphpSpanEvent; |
34 | | - /** @kphp-extern-func-info stub generation-required */ |
35 | | - function addLink(KphpSpan $another) ::: void; |
36 | 43 |
|
| 44 | + /** @kphp-extern-func-info stub */ |
| 45 | + function addLink(KphpSpan $another) ::: void; |
37 | 46 |
|
| 47 | + /** @kphp-extern-func-info stub */ |
38 | 48 | function updateName(string $title, string $short_desc) ::: void; |
39 | 49 |
|
| 50 | + /** @kphp-extern-func-info stub */ |
40 | 51 | function finish(?float $end_timestamp = null) ::: void; |
41 | 52 |
|
| 53 | + /** @kphp-extern-func-info stub */ |
42 | 54 | function finishWithError(int $error_code, string $error_msg, ?float $end_timestamp = null) ::: void; |
43 | | - /** @kphp-extern-func-info stub generation-required */ |
| 55 | + |
| 56 | + /** @kphp-extern-func-info stub */ |
44 | 57 | function exclude() ::: void; |
45 | 58 | } |
46 | 59 |
|
47 | 60 | final class KphpSpanEvent { |
| 61 | + /** @kphp-extern-func-info stub */ |
48 | 62 | private function __construct(); |
49 | 63 |
|
50 | | - /** @kphp-extern-func-info stub generation-required */ |
| 64 | + /** @kphp-extern-func-info stub */ |
51 | 65 | function addAttributeString(string $key, string $value) ::: void; |
52 | | - /** @kphp-extern-func-info stub generation-required */ |
| 66 | + |
| 67 | + /** @kphp-extern-func-info stub */ |
53 | 68 | function addAttributeInt(string $key, int $value) ::: void; |
54 | | - /** @kphp-extern-func-info stub generation-required */ |
| 69 | + |
| 70 | + /** @kphp-extern-func-info stub */ |
55 | 71 | function addAttributeFloat(string $key, float $value) ::: void; |
56 | | - /** @kphp-extern-func-info stub generation-required */ |
| 72 | + |
| 73 | + /** @kphp-extern-func-info stub */ |
57 | 74 | function addAttributeBool(string $key, bool $value) ::: void; |
58 | 75 | } |
59 | 76 |
|
| 77 | +/** @kphp-extern-func-info stub */ |
60 | 78 | function kphp_tracing_init(string $root_span_title): KphpDiv; |
61 | 79 |
|
| 80 | +/** @kphp-extern-func-info stub */ |
62 | 81 | function kphp_tracing_set_level(int $trace_level): void; |
63 | 82 |
|
| 83 | +/** @kphp-extern-func-info stub */ |
64 | 84 | function kphp_tracing_get_level(): int; |
65 | 85 |
|
| 86 | +/** @kphp-extern-func-info stub */ |
66 | 87 | function kphp_tracing_register_on_finish(callable(float $now_timestamp):bool $cb_should_be_flushed); |
| 88 | +/** @kphp-extern-func-info stub */ |
67 | 89 | function kphp_tracing_register_enums_provider(callable():tuple(int, string, string[])[] $cb_custom_enums); |
| 90 | +/** @kphp-extern-func-info stub */ |
68 | 91 | function kphp_tracing_register_rpc_details_provider(callable(@tl\RpcFunction):string $cb_for_typed, callable(mixed):string $cb_for_untyped); |
69 | 92 |
|
| 93 | +/** @kphp-extern-func-info stub */ |
70 | 94 | function kphp_tracing_start_span(string $title, string $short_desc, float $start_timestamp): KphpSpan; |
71 | 95 |
|
| 96 | +/** @kphp-extern-func-info stub */ |
72 | 97 | function kphp_tracing_get_root_span(): KphpSpan; |
73 | 98 |
|
| 99 | +/** @kphp-extern-func-info stub */ |
74 | 100 | function kphp_tracing_get_current_active_span(): KphpSpan; |
75 | 101 |
|
| 102 | +/** @kphp-extern-func-info stub */ |
76 | 103 | function kphp_tracing_func_enter_branch(int $branch_num) ::: void; |
0 commit comments