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
1. The `SELECT * FROM records` statement is the base query that will be executed. The **records** table contains the spans and logs data.
37
-
38
-
You can use this table to filter the data you want to analyze.
39
-
40
-
2. The `is_exception` field is a boolean field that indicates whether the record is an exception.
41
-
3. The `service_name` field contains the name of the service that generated the record.
42
-
4. The `attributes` field is a [JSONB] field that contains additional information about the record.
43
-
5. In this case, we're using the `http.route` attribute to filter the records by route.
36
+
1. The `SELECT ... FROM records` statement is the base query that will be executed. The **records** table contains the spans and logs data. `trace_id` links to the trace in the live view when viewing the alert run results in the web UI.
37
+
2. The `attributes` field is a JSON field that contains additional information about the record. In this case, we're using the `http.route` attribute to filter the records by route.
44
38
45
39
The **Time window** field allows you to specify the time range over which the query will be executed.
46
40
@@ -75,4 +69,3 @@ You can configure an alert by clicking on the **Configuration** button on the ri
75
69
You can update the alert, or delete it by clicking the **Delete** button. If instead of deleting the alert, you want to disable it, you can click on the **Active** switch.
Copy file name to clipboardExpand all lines: docs/how-to-guides/query-api.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -144,7 +144,7 @@ client library, such as `requests` in Python. Below are the general steps and an
144
144
145
145
### General Steps to Make a Direct HTTP Request
146
146
147
-
1.**Set the Endpoint URL**: The base URL for the Logfire API is `https://logfire-api.pydantic.dev`.
147
+
1.**Set the Endpoint URL**: The base URL for the Logfire API is `https://logfire-us.pydantic.dev` for accounts in the US region, and `https://logfire-eu.pydantic.dev` for accounts in the EU region.
148
148
149
149
2.**Add Authentication**: Include the read token in your request headers to authenticate.
150
150
The header key should be `Authorization` with the value `Bearer <your_read_token_here>`.
@@ -162,7 +162,7 @@ You can also use the `Accept` header to specify the desired format for the respo
162
162
import requests
163
163
164
164
# Define the base URL and your read token
165
-
base_url ='https://logfire-api.pydantic.dev'
165
+
base_url ='https://logfire-us.pydantic.dev'# or 'https://logfire-eu.pydantic.dev' for EU accounts
0 commit comments