Skip to content

Commit

Permalink
Revert "[AIG] Updated logging (#16793)" (#16795)
Browse files Browse the repository at this point in the history
This reverts commit de43b5e.
  • Loading branch information
daisyfaithauma authored Sep 12, 2024
1 parent 415168b commit e35a2eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 50 deletions.
15 changes: 5 additions & 10 deletions src/content/docs/ai-gateway/observability/analytics.mdx
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
---
title: Analytics
title: Analytics and logging
pcx_content_type: reference
---

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

<Render file="analytics-overview" /> <br />
These analytics help you understand traffic patterns, token consumption, and
potential issues across different AI providers or individual providers. You can
view the following analytics:

- **Requests**: View the total number of requests processed by the AI Gateway.
- **Token Usage**: Analyze token consumption across all requests, giving insight into usage patterns and helping optimize token allocation.
- **Costs**: Gain visibility into the costs associated with using different AI providers. This allows you to track spending, manage budgets, and optimize your resources.
- **Error Rates**: Monitor the percentage of errors across requests, helping to identify and troubleshoot issues that may arise in provider responses.
- **Cached Responses**: View the percentage of responses served from cache.

## View analytics

Expand Down Expand Up @@ -48,3 +39,7 @@ curl https://api.cloudflare.com/client/v4/graphql \
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.
:::
## Logging
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.
30 changes: 0 additions & 30 deletions src/content/docs/ai-gateway/observability/persistent-logs.mdx

This file was deleted.

10 changes: 0 additions & 10 deletions src/content/partials/ai-gateway/logging.mdx

This file was deleted.

0 comments on commit e35a2eb

Please sign in to comment.