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
|[getTelemetry(app)](./telemetry.md#gettelemetry_cf608e1)| Returns the default [Telemetry](./telemetry.telemetry.md#telemetry_interface) instance that is associated with the provided [FirebaseApp](./app.firebaseapp.md#firebaseapp_interface)<!---->. If no instance exists, initializes a new instance with the default settings. |
20
20
| <b>function(telemetry, ...)</b> |
21
-
|[captureError(telemetry, error)](./telemetry.md#captureerror_7c2d94e)| Enqueues an error to be uploaded to the Firebase Telemetry API. |
21
+
|[captureError(telemetry, error, attributes)](./telemetry.md#captureerror_862e6b3)| Enqueues an error to be uploaded to the Firebase Telemetry API. |
22
22
|[flush(telemetry)](./telemetry.md#flush_8975134)| Flushes all enqueued telemetry data immediately, instead of waiting for default batching. |
23
23
24
24
## Interfaces
25
25
26
26
| Interface | Description |
27
27
| --- | --- |
28
+
|[RequestErrorContext](./telemetry.requesterrorcontext.md#requesterrorcontext_interface)| Copyright 2025 Google LLC<!---->Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at<!---->http://www.apache.org/licenses/LICENSE-2.0<!---->Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. |
28
29
|[Telemetry](./telemetry.telemetry.md#telemetry_interface)| An instance of the Firebase Telemetry SDK.<!---->Do not create this instance directly. Instead, use [getTelemetry()](./telemetry.md#gettelemetry_cf608e1)<!---->. |
29
30
31
+
## Variables
32
+
33
+
| Variable | Description |
34
+
| --- | --- |
35
+
|[nextOnRequestError](./telemetry.md#nextonrequesterror)| Automatically report uncaught errors from server routes to Firebase Telemetry. |
This is generated by the JS SDK team, and any local changes will be
8
+
overwritten. Changes should be made in the source code at
9
+
https://github.com/firebase/firebase-js-sdk
10
+
{% endcomment %}
11
+
12
+
# RequestErrorContext interface
13
+
Copyright 2025 Google LLC
14
+
15
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
16
+
17
+
http://www.apache.org/licenses/LICENSE-2.0
18
+
19
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
0 commit comments