# Grant Application: Telemetry integration into Cow SDK(TS)

**URL:** <https://forum.cow.fi/t/grant-application-telemetry-integration-into-cow-sdk-ts/3267>\
**Category:** CoW Grants Program\
**Tags:** grant-rejected\
**Created:** [November 20, 2025, 3:37am UTC](https://forum.cow.fi/t/grant-application-telemetry-integration-into-cow-sdk-ts/3267 "2025-11-20T03:37:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![supernovahs444](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@supernovahs444](https://forum.cow.fi/u/supernovahs444)\
**Post date:** [November 20, 2025, 3:37am UTC](https://forum.cow.fi/t/grant-application-telemetry-integration-into-cow-sdk-ts/3267/1 "2025-11-20T03:37:33Z")

</div>

## **Telemetry integration into Cow SDK(TS)**

Integration of Posthog into Cow SDK(Typescript)

## **Author(s)**

@supernovahs444  
Github: supernovahs

## **Experiences and qualifications:** _(optional or keep it short)_

Working on Ethereum OS, primarily focusing on development tooling, for the past four years.

## **Grant Description** :

**Problem:** oW Protocol has zero visibility into SDK usage patterns. The team cannot identify which features are used, what errors occur, or how users interact with the SDK

**Solution:** Implement opt-in telemetry using PostHog. ( to track critical SDK events, including initialisation, quotes, order creation, signing, and errors)

**Implementation:** Create a telemetry module within `@cowprotocol/sdk-trading` that wraps PostHog. Integrate by adding telemetry tracking to `TradingSdk` public methods using a try-catch pattern to capture success/failure events. Includes CI/CD pipeline with secure secret injection, PostHog dashboard with key charts, and documentation.

**Impact:** Enable data-driven decisions, faster bug detection, and improved SDK quality. Benefits all developers building on the CoW Protocol with minimal overhead.

**Deliverables:** PR for Typescript SDK, PostHog dashboard, CI/CD setup, and documentation.

The following events will be recorded:-

- SDK Initialisation
- Parameter Updates
- Quote Operations
- Order Signing
- Swap Orders
- Limit Orders
- Native Currency Orders
- Order Cancellation

#### **PostHog Setup & Privacy**

**Development:** I will use a free-tier PostHog key (1M events/month) for testing and validation during the grant period.

**Production:** After PR merge, the CoW Protocol team must:

- Create their own PostHog account (free tier: 1M events/month)
- Add their production API key to GitHub Secrets
- Publish to npm with their key via CI/CD pipeline

**Privacy:** PostHog offers GDPR-compliant features including EU/US data residency, automatic PII detection, and configurable retention policies. CoW DAO will determine the specific privacy configuration based on its compliance requirements.

## **Type of Grant:**

Milestone-Based Grant (Single Milestone)

## **Milestones:**

```auto
| Milestones | Title | | Due date (*) | Funding request
| Milestones 1 | Pull Request to integrate telemetry into Typescript SDK along with CI/CD with working Posthog dashboard |4 weeks | | 2000 xDai|

```

### **Milestone 1: Complete SDK Telemetry System**

**Due Date:** 4 weeks after grant acceptance

## **Length**

**Total Duration:** 4 weeks

## **Funding Request:**

2000 xDai

## **Gnosis Chain Address (to receive the grant)**

TBD

## **Terms and Conditions**

By submitting this grant application, I acknowledge and agree to be bound by the [CoW DAO Participation Agreement](https://gateway.pinata.cloud/ipfs/Qmf9MYhcG2pFrDoVy13p6FWeVF4nG9HbJvRfYYbhazTCFe) and the [CoW DAO Grant Agreement Terms](https://bafkreifcftgaleyxkekkic36beyveiomqmlwyduyfh3s25zj3uyngr6ht4.ipfs.dweb.link/).

---

<div class="post-metadata">

**Author:** ![supernovahs444](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@supernovahs444](https://forum.cow.fi/u/supernovahs444)\
**Post date:** [November 20, 2025, 3:38am UTC](https://forum.cow.fi/t/grant-application-telemetry-integration-into-cow-sdk-ts/3267/2 "2025-11-20T03:38:03Z")

</div>

> **[Documentation - PostHog](https://posthog.com/docs)**
>
> The single platform for engineers to analyze, test, observe, and deploy new features. Product analytics, session replay, feature flags, experiments, CDP, and more.

data storage : [Controlling data storage - Docs - PostHog](https://posthog.com/docs/privacy/data-storage)

---

<div class="post-metadata">

**Author:** ![Sov](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/sov/32/1295_2.png) [@Sov](https://forum.cow.fi/u/Sov)\
**Post date:** [November 22, 2025, 3:43am UTC](https://forum.cow.fi/t/grant-application-telemetry-integration-into-cow-sdk-ts/3267/3 "2025-11-22T03:43:17Z")

</div>

Thanks for your submission. After discussing this internally with @mfw78 we don’t think this makes sense to pursue at this time.

Our reasoning: we already track SDK errors in our front-end, and we don’t believe this would provide sufficient additional value to offset the ongoing maintenance costs.

With that said, please keep an eye on our RFP threads for future opportunities that might be a better fit.

---

<div class="post-metadata">

**Author:** ![Chim9](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/chim9/32/417_2.png) [@Chim9](https://forum.cow.fi/u/Chim9)\
**Post date:** [November 22, 2025, 3:48pm UTC](https://forum.cow.fi/t/grant-application-telemetry-integration-into-cow-sdk-ts/3267/4 "2025-11-22T15:48:23Z")

</div>

For the rest sorry @supernovahs444 you were muted by the anti spam bot after posting the reply, it should be good now, if ever you want to add anything to this grant application or post on the forum later.

---

<div class="post-metadata">

**Author:** ![supernovahs444](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@supernovahs444](https://forum.cow.fi/u/supernovahs444)\
**Post date:** [November 23, 2025, 2:00am UTC](https://forum.cow.fi/t/grant-application-telemetry-integration-into-cow-sdk-ts/3267/5 "2025-11-23T02:00:15Z")

</div>

No worries, thanks for the heads up

---

<div class="post-metadata">

**Author:** ![mfw78](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.cow.fi/mfw78/32/1598_2.png) [@mfw78](https://forum.cow.fi/u/mfw78)\
**Post date:** [November 24, 2025, 11:33am UTC](https://forum.cow.fi/t/grant-application-telemetry-integration-into-cow-sdk-ts/3267/6 "2025-11-24T11:33:45Z")

</div>


