amplitude / amplitude/Amplitude-Python

Missing events with AWS Lambda

Đang mở
#57 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
37
Fork
9
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.