-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathpublic_api.snapshot
More file actions
232 lines (214 loc) · 5.97 KB
/
Copy pathpublic_api.snapshot
File metadata and controls
232 lines (214 loc) · 5.97 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
# This file is generated by `mix posthog.public_api --update`.
# Do not edit manually.
# Public modules/functions/macros and documented Mix tasks for posthog
Mix.Tasks.Posthog.PackageSourceCode
module_doc: documented
mix_task: posthog.package_source_code
shortdoc: "Packages source code for PostHog error tracking source context"
module_doc_text:
| Packages source code into a binary file for source context in error tracking.
|
| This task reads all `.ex` source files from the configured root paths and
| writes a compressed binary into PostHog's own `priv/` directory. This file
| is then bundled into the release and loaded at runtime to provide source
| context in stack traces.
|
| Run this task before building a release:
|
| mix posthog.package_source_code
| mix release
|
| ## Options
|
| * `--output` - Custom output path (default: PostHog's priv dir)
| * `--root-path` - Root source code path(s). Can be specified multiple times.
| Defaults to the current working directory.
|
| ## Configuration
|
| This task reads the following from your application config:
|
| config :posthog,
| root_source_code_paths: [File.cwd!()],
| source_code_path_pattern: "**/*.ex",
| source_code_exclude_patterns: [~r"^_build/", ~r"^priv/", ~r"^test/"]
|
| CLI options override config values.
functions:
(none)
macros:
(none)
Mix.Tasks.Posthog.PublicApi
module_doc: documented
mix_task: posthog.public_api
shortdoc: "Checks the committed public API snapshot"
module_doc_text:
| Checks the committed public API snapshot.
|
| The snapshot is generated from compiled BEAM metadata. Public modules are
| discovered from the current Mix application. `PostHog.*` modules and
| documented `Mix.Tasks.Posthog.*` modules are included. `Code.fetch_docs/1` is
| used to identify documented modules and function visibility, and `__info__/1`
| is used to enumerate exported functions and macros. Mix tasks also include
| their task name, shortdoc, and module documentation text so command/options
| documentation changes are checked.
|
| mix posthog.public_api --check
| mix posthog.public_api --update
|
| ## Options
|
| * `--check` - Compare the generated snapshot with the committed snapshot.
| This is the default.
| * `--update` - Regenerate the committed snapshot.
| * `--snapshot` - Snapshot path. Defaults to `public_api.snapshot`.
functions:
(none)
macros:
(none)
PostHog
module_doc: documented
functions:
bare_capture/2 doc: none
bare_capture/4 doc: documented
capture/1 doc: none
capture/3 doc: documented
config/0 doc: none
config/1 doc: documented
get_context/0 doc: none
get_context/1 doc: documented
get_event_context/1 doc: none
get_event_context/2 doc: documented
set_context/1 doc: none
set_context/2 doc: documented
set_event_context/2 doc: none
set_event_context/3 doc: documented
macros:
(none)
PostHog.API.Client
module_doc: documented
functions:
user_agent/0 doc: documented
macros:
(none)
PostHog.Config
module_doc: documented
functions:
validate/1 doc: documented
validate!/1 doc: documented
macros:
(none)
PostHog.Error
module_doc: documented
functions:
(none)
macros:
(none)
PostHog.FeatureFlags
module_doc: documented
functions:
check/1 doc: none
check/3 doc: documented
check!/1 doc: none
check!/3 doc: documented
evaluate_flags/0 doc: none
evaluate_flags/2 doc: documented
flags/1 doc: none
flags/2 doc: documented
flags_for/0 doc: none
flags_for/2 doc: documented
get_feature_flag_result/1 doc: none
get_feature_flag_result/4 doc: documented
get_feature_flag_result!/1 doc: none
get_feature_flag_result!/4 doc: documented
set_in_context/1 doc: documented
set_in_context/2 doc: documented
macros:
(none)
PostHog.FeatureFlags.Evaluations
module_doc: documented
functions:
accessed/1 doc: documented
enabled?/2 doc: documented
event_properties/1 doc: documented
get_flag/2 doc: documented
get_flag_payload/2 doc: documented
keys/1 doc: documented
only/2 doc: documented
only_accessed/1 doc: documented
macros:
(none)
PostHog.FeatureFlags.Result
module_doc: documented
functions:
value/1 doc: documented
macros:
(none)
PostHog.Handler
module_doc: documented
functions:
(none)
macros:
(none)
PostHog.Integrations.LLMAnalytics.Req
module_doc: documented
functions:
attach/1 doc: none
attach/2 doc: documented
macros:
(none)
PostHog.Integrations.Plug
module_doc: documented
functions:
(none)
macros:
(none)
PostHog.LLMAnalytics
module_doc: documented
functions:
capture_current_span/1 doc: none
capture_current_span/3 doc: documented
capture_span/1 doc: none
capture_span/3 doc: documented
get_root_span/0 doc: none
get_root_span/1 doc: documented
get_session/0 doc: none
get_session/1 doc: documented
get_trace/0 doc: none
get_trace/1 doc: documented
pop_span/0 doc: none
pop_span/1 doc: documented
set_root_span/1 doc: none
set_root_span/2 doc: documented
set_session/0 doc: none
set_session/2 doc: documented
set_trace/0 doc: none
set_trace/2 doc: documented
start_span/0 doc: none
start_span/2 doc: documented
macros:
(none)
PostHog.Supervisor
module_doc: documented
functions:
child_spec/1 doc: documented
start_link/1 doc: documented
macros:
(none)
PostHog.Test
module_doc: documented
functions:
all_captured/0 doc: none
all_captured/1 doc: documented
allow/2 doc: none
allow/3 doc: documented
set_posthog_shared/0 doc: none
set_posthog_shared/1 doc: documented
macros:
(none)
PostHog.UnexpectedResponseError
module_doc: documented
functions:
(none)
macros:
(none)