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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2023-2023 the Nifty li'l' tricks authors. All rights reserved. MIT license.

import { SpanKind } from "@opentelemetry/api";
import { MonitorMethod, shouldMonitorMethod } from "./monitor.util";
import { SpanKind } from "npm:@opentelemetry/api";
import { MonitorMethod, shouldMonitorMethod } from "./monitor.util.ts";

export type MonitorDecorator = DecoratorContext;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Copyright 2023-2023 the Nifty li'l' tricks authors. All rights reserved. MIT license.

import {
Context,
type Context,
type Span,
type SpanOptions,
SpanKind,
SpanOptions,
SpanStatusCode,
context,
diag,
trace,
} from "@opentelemetry/api";
} from "npm:@opentelemetry/api";

function isPromise<Return>(p: Promise<Return> | Return): p is Promise<Return> {
return (
Expand Down
4 changes: 4 additions & 0 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Copyright 2023-2023 the Nifty li'l' tricks authors. All rights reserved. MIT license.

export * from "./decorators/monitor/monitor.ts";
export * from "./decorators/monitor/monitor.util.ts";
3 changes: 0 additions & 3 deletions src/decorators/index.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/decorators/monitor/index.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/index.ts

This file was deleted.

Loading