Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Invalid Event Fails Without Logging or Callback

オープン
#59 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
analytics

調査の方向性

まず、SDK 1.1.4 で Amplitude.track と Python datetime のイベントプロパティを使用して失敗を再現し、次に、無効なプロパティが無効な API キーや成功したコールバックと比較してどのように処理されるかを追跡します。完了の条件は、失敗がサイレントでなくなることです。設定された logging または callback の仕組みがそれを報告し、このケースの回帰テストも含まれている状態です。

索引モデルが issue の本文から書いたものです。

説明

bug

Expected Behavior

If an event doesn't get tracked for any reason (in my case because of an invalid event property value), I would expect to be able to configure a way to get notified about it, either through logging or through the callback function.

Current Behavior

I was using the Amplitude client to track an event and noticed that it wasn't showing up in the Amplitude dashboard. After looking into it, it seems to be caused by a Python datetime object being passed as an event property (formatting it as a string resulted in the event being tracked). However, at no point did the library log an error (like it does for an invalid API key). Configuring a callback function also did not help - the callback function gets called for successful events, but not this particular error case.

Possible Solution

I'm not sure if the current behaviour is a bug or by design, but there should be some way for the developer to know about a call to Amplitude.track failing for whatever reason.

Steps to Reproduce

  1. Track an event with a a Python datetime object as an event property value
  2. No event gets tracked and it fails silently

Environment

  • SDK Version: 1.1.4
  • Python Version: 3.11.6
  • OS Info: macOS 14.6.1
主要言語
Python
スター
38
フォーク
11
平均マージ
10時間 11分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

amplitude/Amplitude-Python のほかの issue

amplitude/Amplitude-Python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。