Skip to content

Commit

Permalink
Merge pull request #13 from axiomhq/arne/fix-main-types
Browse files Browse the repository at this point in the history
Fix main/types in package.json, bump version to 0.1.1
  • Loading branch information
bahlo authored Sep 22, 2022
2 parents 02c6300 + 923ff16 commit 008fc51
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name": "prisma-axiom",
"description": "Axiom observability middleware for Prisma",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"dependencies": {
"@opentelemetry/exporter-trace-otlp-proto": "^0.32.0",
"@opentelemetry/instrumentation": "^0.32.0",
Expand All @@ -20,7 +22,7 @@
"peerDependencies": {
"@prisma/client": "^4.2.1"
},
"version": "0.1.0",
"version": "0.1.1",
"repository": {
"type": "git",
"url": "git+https://github.com/axiomhq/prisma-axiom.git"
Expand All @@ -41,12 +43,11 @@
"url": "https://github.com/axiomhq/prisma-axiom/issues"
},
"homepage": "https://github.com/axiomhq/prisma-axiom#readme",
"main": "index.ts",
"scripts": {
"build": "tsc",
"prepare": "npm run build",
"format": "prettier --write src/*.ts",
"check-format": "prettier -c src/*.ts",
"test": "jest"
}
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function withAxiom(prisma: PrismaClient, config: AxiomConfig = de
const provider = axiomTracerProvider(config.axiomToken, config.axiomUrl, config.additionalInstrumentations || []);

// Register provider
if (trace.setGlobalTracerProvider(provider) == false) {
if (trace.setGlobalTracerProvider(provider)) {
provider.register();
} else {
console.warn('prisma-axiom: Failed to set global tracer provider.');
Expand Down

0 comments on commit 008fc51

Please sign in to comment.