amplitude / amplitude/Amplitude-Python

Missing events with AWS Lambda

未关闭
#57 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
37
派生
9
PR 合并指标
30 天内没有已合并 PR

描述

## Expected Behavior
As an event is being sent, without any batching, I would expect to see it in Amplitude. However, I do not see every event, and some go missing.

## Steps to Reproduce
Configuration:

# Initialize Amplitude client
api_key = get_amplitude_api_key()
amp = Amplitude(api_key)
amp.use_batch = False

def send_to_tracking_api(user_id, data):
user_id = user_id
event_name = data["action"]
print(f"Sending tracking event {event_name} for user {user_id}")

try:
event = BaseEvent(
user_id=user_id,
event_type=event_name,
event_properties={
"started_at": data['started_at'],
"task_content": data['task_content'],
"timestamp": data["timestamp"]
}
)
amp.track(event)
except Exception as e:
print(f"Error sending tracking event: {e}")

## Environment
- SDK Version: 1.1.4
- Python Version: 3.12

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。