MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / getBaseApiEndpoint

Function getBaseApiEndpoint

packages/core/src/api.ts:9–13  ·  view source on GitHub ↗

Returns the prefix to construct Sentry ingestion API endpoints.

(dsn: DsnComponents)

Source from the content-addressed store, hash-verified

7
8/** Returns the prefix to construct Sentry ingestion API endpoints. */
9function 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. */
16function _getIngestEndpoint(dsn: DsnComponents): string {

Callers 2

_getIngestEndpointFunction · 0.85
getReportDialogEndpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected