Source/Packages

Runtime.TelemetryPolicy

packages/execution/src/Runtime/TelemetryPolicy.alpha

807 lines46 declarations32.1 KiBSHA-256 924158de3c5b

def · lines 64–115

telemetryPolicyDescriptor

Full file
64def telemetryPolicyDescriptor =
65  (lambda unrestricted policy : (family CapturePolicy) .
66    (telemetryRecordJSON
67      (aosDescriptorRecord
68        b"policy"
69        (bytes-append b"policy:" (capturePolicyIdentifier policy))
70        (constructor
71          JSON
72          JSONObject
73          (telemetryPolicyMember
74            b"format"
75            (telemetryPolicyText b"AOS-CAPTURE-POLICY/1")
76            (telemetryPolicyMember
77              b"policy_id"
78              (telemetryPolicyText (capturePolicyIdentifier policy))
79              (telemetryPolicyMember
80                b"profile"
81                (telemetryPolicyText (captureProfileName (capturePolicyProfile policy)))
82                (telemetryPolicyMember
83                  b"content_opt_in"
84                  (constructor JSON JSONBoolean (capturePolicyContentEnabled policy))
85                  (telemetryPolicyMember
86                    b"ordinary_event_budget"
87                    (telemetryPolicyNatural (capturePolicyOrdinaryCapacity policy))
88                    (telemetryPolicyMember
89                      b"reserved_event_budget"
90                      (telemetryPolicyNatural (capturePolicyReservedCapacity policy))
91                      (telemetryPolicyMember
92                        b"encoded_batch_byte_budget"
93                        (telemetryPolicyNatural (capturePolicyByteBudget policy))
94                        (telemetryPolicyMember
95                          b"dimension_limit"
96                          (telemetryPolicyNatural (capturePolicyDimensionLimit policy))
97                          (telemetryPolicyMember
98                            b"flush_after_opportunities"
99                            (telemetryPolicyNatural (capturePolicyFlushOpportunities policy))
100                            (telemetryPolicyMember
101                              b"required"
102                              (constructor JSON JSONBoolean (capturePolicyRequired policy))
103                              (telemetryPolicyMember
104                                b"budget_scope"
105                                (telemetryPolicyText
106                                  b"per drain batch; not total process memory or lifetime event count")
107                                (telemetryPolicyMember
108                                  b"flush_scope"
109                                  (telemetryPolicyText
110                                    b"selected plus excluded opportunities at declared safe boundaries; no wall-clock bound")
111                                  (telemetryPolicyMember
112                                    b"pending_behavior"
113                                    (telemetryPolicyText
114                                      b"return pending at a safe boundary; the run policy must drain/retry or report pause/failure")
115                                    (constructor JSON JSONObjectEnd))))))))))))))))))

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.