Skip to content

Commit

Permalink
feat: add sentry module
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Aug 1, 2024
1 parent 492942e commit 54911ae
Show file tree
Hide file tree
Showing 6 changed files with 252 additions and 62 deletions.
1 change: 1 addition & 0 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.6.3",
"exports": {
"./router": "./src/router.ts",
"./sentry": "./src/sentry.ts",
"./utils": "./src/utils.ts"
},
"publish": {
Expand Down
108 changes: 61 additions & 47 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 19 additions & 5 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
export { abortable, deadline, debounce, delay, retry } from 'jsr:@std/async@^1.0.0-rc.4'
export { walk } from 'jsr:@std/fs@^1.0.0-rc.5'
export { serveDir, type ServeDirOptions, STATUS_CODE, STATUS_TEXT, type StatusCode } from 'jsr:@std/http@^1.0.0-rc.4'
export { joinGlobs, toFileUrl } from 'jsr:@std/path@^1.0.0'
export { normalize as posixNormalize } from 'jsr:@std/path@^1.0.0/posix/normalize'
export {
captureException,
continueTrace,
defineIntegration,
requestDataIntegration,
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
setHttpStatus,
startSpan,
withIsolationScope,
} from 'https://esm.sh/@sentry/core@^8.22.0'
export * as Sentry from 'https://esm.sh/@sentry/deno@^8.22.0'
export type { IntegrationFn, SpanAttributes } from 'https://esm.sh/@sentry/types@^8.22.0'
export { getSanitizedUrlString, parseUrl } from 'https://esm.sh/@sentry/utils@^8.22.0'
export { abortable, deadline, debounce, delay, retry } from 'jsr:@std/async@^1.0.1'
export { walk } from 'jsr:@std/fs@^1.0.0'
export { serveDir, type ServeDirOptions, STATUS_CODE, STATUS_TEXT, type StatusCode } from 'jsr:@std/http@^1.0.0-rc.6'
export { joinGlobs, toFileUrl } from 'jsr:@std/path@^1.0.2'
export { normalize as posixNormalize } from 'jsr:@std/path@^1.0.2/posix/normalize'
export { escape } from 'jsr:@std/regexp@^1.0.0'
export { watch } from 'npm:chokidar@^3.6.0'
export type { ZodType } from 'npm:zod@^3.23.8'
18 changes: 9 additions & 9 deletions dev_deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ export {
type SelectOptions,
} from 'jsr:@cliffy/prompt@^1.0.0-rc.5'
export { ensure, is } from 'jsr:@core/unknownutil@^3.18.1'
export { createGraph, load as loadGraph } from 'jsr:@deno/graph@^0.80.1'
export type { DependencyJson, ResolvedDependency } from 'jsr:@deno/graph@^0.80.1/types'
export { createGraph, load as loadGraph } from 'jsr:@deno/graph@^0.81.0'
export type { DependencyJson, ResolvedDependency } from 'jsr:@deno/graph@^0.81.0/types'
export { Mutex } from 'jsr:@lambdalisue/async@^2.1.1'
export { assertEquals, assertExists } from 'jsr:@std/assert@^1.0.0'
export { parseArgs, Spinner } from 'jsr:@std/cli@^1.0.0-rc.5'
export { filterEntries } from 'jsr:@std/collections@^1.0.4'
export { assertEquals, assertExists } from 'jsr:@std/assert@^1.0.1'
export { parseArgs, Spinner } from 'jsr:@std/cli@^1.0.1'
export { filterEntries } from 'jsr:@std/collections@^1.0.5'
export { bold, cyan, dim, green, magenta } from 'jsr:@std/fmt@^1.0.0-rc.1/colors'
export { expandGlob } from 'jsr:@std/fs@^1.0.0-rc.5'
export { getAvailablePort } from 'jsr:@std/net@^1.0.0-rc.1/get-available-port'
export { dirname, fromFileUrl, relative, resolve, toFileUrl } from 'jsr:@std/path@^1.0.0'
export { expandGlob } from 'jsr:@std/fs@^1.0.0'
export { getAvailablePort } from 'jsr:@std/net@^1.0.0-rc.2/get-available-port'
export { dirname, fromFileUrl, relative, resolve, toFileUrl } from 'jsr:@std/path@^1.0.2'
export { escape } from 'jsr:@std/regexp@^1.0.0'
export * as SemVer from 'jsr:@std/semver@^1.0.0-rc.2'
export * as SemVer from 'jsr:@std/semver@^1.0.0-rc.3'

export const $ = new Proxy(_$, {
apply(target, thisArg, args: Parameters<$Type>) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,5 +399,5 @@ function isPreRelease(version: string): boolean {

/**
* TODO:
* - removed vendored code when https://github.com/hasundue/molt/issues/194 and https://github.com/hasundue/molt/issues/195 are resolved
* - remove vendored code when https://github.com/hasundue/molt/issues/194 and https://github.com/hasundue/molt/issues/195 are resolved
*/
Loading

0 comments on commit 54911ae

Please sign in to comment.