Returns the prefix to construct Sentry ingestion API endpoints.
(dsn: DsnComponents)
| 7 | |
| 8 | /** Returns the prefix to construct Sentry ingestion API endpoints. */ |
| 9 | function getBaseApiEndpoint(dsn: DsnComponents): string { |
| 10 | const protocol = dsn.protocol ? `${dsn.protocol}:` : ''; |
| 11 | const port = dsn.port ? `:${dsn.port}` : ''; |
| 12 | return `${protocol}//${dsn.host}${port}${dsn.path ? `/${dsn.path}` : ''}/api/`; |
| 13 | } |
| 14 | |
| 15 | /** Returns the ingest API endpoint for target. */ |
| 16 | function _getIngestEndpoint(dsn: DsnComponents): string { |
no outgoing calls
no test coverage detected