(
configured_client: OpenPipe,
openpipe_options={},
**kwargs,
)
| 62 | |
| 63 | |
| 64 | def report( |
| 65 | configured_client: OpenPipe, |
| 66 | openpipe_options={}, |
| 67 | **kwargs, |
| 68 | ): |
| 69 | if not _should_log_request(configured_client, openpipe_options): |
| 70 | return |
| 71 | |
| 72 | try: |
| 73 | configured_client.report( |
| 74 | **kwargs, |
| 75 | tags=_get_tags(openpipe_options), |
| 76 | ) |
| 77 | except Exception as e: |
| 78 | # We don't want to break client apps if our API is down for some reason |
| 79 | print(f"Error reporting to OpenPipe: {e}") |
| 80 | print(e) |
| 81 | |
| 82 | |
| 83 | async def report_async( |
no test coverage detected