Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions packages/node/src/integrations/tracing/koa/index.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,6 @@
import type { KoaInstrumentationConfig, KoaLayerType } from './vendored/types';
import { KoaInstrumentation } from './vendored/instrumentation';
import { captureException } from '@sentry/core';
import { generateInstrumentOnce } from '../../../otel/instrument';
import { ensureIsWrapped } from '../../../utils/ensureIsWrapped';

interface KoaOptions {
/**
* Ignore layers of specified types
*/
ignoreLayersType?: Array<'middleware' | 'router'>;
}

const INTEGRATION_NAME = 'Koa' as const;

export const instrumentKoa = generateInstrumentOnce(
INTEGRATION_NAME,
KoaInstrumentation,
(options: KoaOptions = {}) => {
return {
ignoreLayersType: options.ignoreLayersType as KoaLayerType[],
} satisfies KoaInstrumentationConfig;
},
);

/**
* Add an Koa error handler to capture errors to Sentry.
*
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions packages/node/src/integrations/tracing/koa/vendored/types.ts

This file was deleted.

54 changes: 0 additions & 54 deletions packages/node/src/integrations/tracing/koa/vendored/utils.ts

This file was deleted.

Loading
Loading