Invalid Event Fails Without Logging or Callback
まだ誰も着手していません。
評価
調査の方向性
まず、SDK 1.1.4 で Amplitude.track と Python datetime のイベントプロパティを使用して失敗を再現し、次に、無効なプロパティが無効な API キーや成功したコールバックと比較してどのように処理されるかを追跡します。完了の条件は、失敗がサイレントでなくなることです。設定された logging または callback の仕組みがそれを報告し、このケースの回帰テストも含まれている状態です。
索引モデルが issue の本文から書いたものです。
説明
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
- Track an event with a a Python datetime object as an event property value
- 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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
amplitude/Amplitude-Python のほかの issue
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 28/100
amplitude/Amplitude-Python#57 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
amplitude/Amplitude-Python#53 · コメント 1 件 ·
amplitude/Amplitude-Python の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
521xueweihan/HelloGitHub#4115 ·
-
get_lldp_neighbors_detail: query asks for 'max-address' (typo for 'mac-address'), so remote_chassis_id is always empty対応中かも @Jah-yee が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
lesson-submission pending-review
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
Ikalus1988/MisakaNet#3899 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
aws-samples/sample-per-model-bedrock#549 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100