1234567891011121314 |
- from locust import HttpUser, between, task
- from events.test_data.event_generator import generate_random_event
- class WebsiteUser(HttpUser):
- wait_time = between(1.0, 2.0)
- @task
- def send_event(self):
- project_id = "1"
- dsn = "2ed2762c07a04261bec95b197f500626"
- event_url = f"/api/{project_id}/store/?sentry_key={dsn}"
- event = generate_random_event(True)
- self.client.post(event_url, json=event)
|