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

Function defineIntegration

packages/core/src/integration.ts:170–174  ·  view source on GitHub ↗
(
  fn: Fn,
)

Source from the content-addressed store, hash-verified

168 * Note that this by design hides the implementation details of the integration, as they are considered internal.
169 */
170export function defineIntegration<Fn extends IntegrationFn>(
171 fn: Fn,
172): (...args: Parameters<Fn>) => Integration & { name: ReturnType<Fn>['name'] } {
173 return fn;
174}
175
176// When extending an integration, we allow other properties to be passed-through
177type IntegrationWithOtherProperties = Record<string, unknown> & Integration;

Callers 15

index.tsFile · 0.90
opentelemetry.tsFile · 0.90
mysql.tsFile · 0.90
lru-memoizer.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
gcp-context.tsFile · 0.90
integration.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected