Skip to content
Draft
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
17 changes: 17 additions & 0 deletions packages/deno/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export type { DenoOptions } from './types';
export {
addEventProcessor,
addBreadcrumb,
addIntegration,
captureException,
captureEvent,
captureMessage,
Expand All @@ -52,6 +53,7 @@ export {
setAttribute,
setAttributes,
setUser,
setConversationId,
getSpanStatusFromHttpCode,
setHttpStatus,
withScope,
Expand All @@ -69,6 +71,8 @@ export {
startNewTrace,
bindScopeToEmitter,
suppressTracing,
withActiveSpan,
getSpanDescendants,
// eslint-disable-next-line typescript/no-deprecated
inboundFiltersIntegration,
eventFiltersIntegration,
Expand All @@ -79,6 +83,7 @@ export {
dedupeIntegration,
extraErrorDataIntegration,
rewriteFramesIntegration,
moduleMetadataIntegration,
supabaseIntegration,
instrumentSupabaseClient,
instrumentPostgresJsSql,
Expand All @@ -95,14 +100,26 @@ export {
spanToBaggageHeader,
updateSpanName,
wrapMcpServerWithSentry,
trpcMiddleware,
instrumentOpenAiClient,
instrumentAnthropicAiClient,
instrumentGoogleGenAIClient,
createLangChainCallbackHandler,
instrumentLangChainEmbeddings,
instrumentStateGraph,
instrumentCreateReactAgent,
createConsolaReporter,
featureFlagsIntegration,
growthbookIntegration,
metrics,
withStreamedSpan,
logger,
consoleLoggingIntegration,
spanStreamingIntegration,
} from '@sentry/core';

export { prismaIntegration } from '@sentry/server-utils';

export { DenoClient } from './client';

export { getDefaultIntegrations, init } from './sdk';
Expand Down
30 changes: 30 additions & 0 deletions packages/deno/test/exports.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { assertEquals } from 'https://deno.land/std@0.212.0/assert/assert_equals.ts';
import * as Sentry from '../build/esm/index.js';

// Exports that Cloudflare ships and that need no Node APIs.
const EXPECTED_FUNCTION_EXPORTS = [
// @sentry/core
'addIntegration',
'withActiveSpan',
'getSpanDescendants',
'setConversationId',
'createConsolaReporter',
'growthbookIntegration',
'moduleMetadataIntegration',
// @sentry/core/server
'trpcMiddleware',
'prismaIntegration',
'instrumentOpenAiClient',
'instrumentAnthropicAiClient',
'instrumentGoogleGenAIClient',
'createLangChainCallbackHandler',
'instrumentLangChainEmbeddings',
'instrumentStateGraph',
'instrumentCreateReactAgent',
];

for (const name of EXPECTED_FUNCTION_EXPORTS) {
Deno.test(`exports ${name}`, () => {
assertEquals(typeof (Sentry as Record<string, unknown>)[name], 'function');
});
}
Loading