Skip to content

Commit e35a2eb

Browse files
Revert "[AIG] Updated logging (#16793)" (#16795)
This reverts commit de43b5e.
1 parent 415168b commit e35a2eb

File tree

3 files changed

+5
-50
lines changed

3 files changed

+5
-50
lines changed

src/content/docs/ai-gateway/observability/analytics.mdx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
---
2-
title: Analytics
2+
title: Analytics and logging
33
pcx_content_type: reference
44
---
55

66
import { Render, TabItem, Tabs } from "~/components";
77

88
<Render file="analytics-overview" /> <br />
9-
These analytics help you understand traffic patterns, token consumption, and
10-
potential issues across different AI providers or individual providers. You can
11-
view the following analytics:
12-
13-
- **Requests**: View the total number of requests processed by the AI Gateway.
14-
- **Token Usage**: Analyze token consumption across all requests, giving insight into usage patterns and helping optimize token allocation.
15-
- **Costs**: Gain visibility into the costs associated with using different AI providers. This allows you to track spending, manage budgets, and optimize your resources.
16-
- **Error Rates**: Monitor the percentage of errors across requests, helping to identify and troubleshoot issues that may arise in provider responses.
17-
- **Cached Responses**: View the percentage of responses served from cache.
189

1910
## View analytics
2011

@@ -48,3 +39,7 @@ curl https://api.cloudflare.com/client/v4/graphql \
4839
The cost metric is an estimation based on the number of tokens sent and received in requests. While this metric can help you monitor and predict cost trends, refer to your provider’s dashboard for the most accurate cost details.
4940
5041
:::
42+
43+
## Logging
44+
45+
Your AI Gateway dashboard also shows real-time logs of individual requests, such as the prompt, response, provider, timestamps, and whether the request was successful, cached, or if there was an error. These logs now persist and can store up to 10,000 logs per gateway for better observability and analysis.

src/content/docs/ai-gateway/observability/persistent-logs.mdx

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/content/partials/ai-gateway/logging.mdx

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)