Skip to content

Commit

Permalink
feat: upgrade opentelemetry instrumentation and semantic-convention d…
Browse files Browse the repository at this point in the history
…eps (v2) (#58)
  • Loading branch information
justindsmith authored Oct 11, 2024
1 parent b114c31 commit af0e41b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 18 deletions.
4 changes: 2 additions & 2 deletions packages/instrumentation-prisma-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"@opentelemetry/api": "^1.3.0"
},
"dependencies": {
"@opentelemetry/instrumentation": "^0.43.0",
"@opentelemetry/semantic-conventions": "^1.17.0"
"@opentelemetry/instrumentation": "^0.52.1",
"@opentelemetry/semantic-conventions": "^1.25.1"
},
"devDependencies": {
"@opentelemetry/api": "^1.6.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class PrismaClientInstrumentation extends InstrumentationBase {
}

protected init() {
const prismaClientModule = new InstrumentationNodeModuleDefinition<typeof prismaClient>(
const prismaClientModule = new InstrumentationNodeModuleDefinition(
"@prisma/client",
["*"],
(moduleExports: typeof prismaClient) => {
Expand Down
48 changes: 33 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -950,11 +950,23 @@
dependencies:
"@octokit/openapi-types" "^11.2.0"

"@opentelemetry/[email protected]":
version "0.52.1"
resolved "https://registry.yarnpkg.com/@opentelemetry/api-logs/-/api-logs-0.52.1.tgz#52906375da4d64c206b0c4cb8ffa209214654ecc"
integrity sha512-qnSqB2DQ9TPP96dl8cDubDvrUyWc0/sK81xHTK8eSUspzDM3bsewX903qclQFvVhgStjRWdC5bLb3kQqMkfV5A==
dependencies:
"@opentelemetry/api" "^1.0.0"

"@opentelemetry/[email protected]":
version "0.27.0"
resolved "https://registry.npmjs.org/@opentelemetry/api-metrics/-/api-metrics-0.27.0.tgz"
integrity sha512-tB79288bwjkdhPNpw4UdOEy3bacVwtol6Que7cAu8KEJ9ULjRfSiwpYEwJY/oER3xZ7zNFz0uiJ7N1jSiotpVA==

"@opentelemetry/api@^1.0.0":
version "1.9.0"
resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-1.9.0.tgz#d03eba68273dc0f7509e2a3d5cba21eae10379fe"
integrity sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==

"@opentelemetry/api@^1.6.0":
version "1.6.0"
resolved "https://registry.npmjs.org/@opentelemetry/api/-/api-1.6.0.tgz"
Expand Down Expand Up @@ -999,13 +1011,14 @@
semver "^7.3.2"
shimmer "^1.2.1"

"@opentelemetry/instrumentation@^0.43.0":
version "0.43.0"
resolved "https://registry.npmjs.org/@opentelemetry/instrumentation/-/instrumentation-0.43.0.tgz"
integrity sha512-S1uHE+sxaepgp+t8lvIDuRgyjJWisAb733198kwQTUc9ZtYQ2V2gmyCtR1x21ePGVLoMiX/NWY7WA290hwkjJQ==
"@opentelemetry/instrumentation@^0.52.1":
version "0.52.1"
resolved "https://registry.yarnpkg.com/@opentelemetry/instrumentation/-/instrumentation-0.52.1.tgz#2e7e46a38bd7afbf03cf688c862b0b43418b7f48"
integrity sha512-uXJbYU/5/MBHjMp1FqrILLRuiJCs3Ofk0MeRDk8g1S1gD47U8X3JnSwcMO1rtRo1x1a7zKaQHaoYu49p/4eSKw==
dependencies:
"@opentelemetry/api-logs" "0.52.1"
"@types/shimmer" "^1.0.2"
import-in-the-middle "1.4.2"
import-in-the-middle "^1.8.1"
require-in-the-middle "^7.1.1"
semver "^7.5.2"
shimmer "^1.2.1"
Expand Down Expand Up @@ -1058,11 +1071,16 @@
resolved "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.0.1.tgz"
integrity sha512-7XU1sfQ8uCVcXLxtAHA8r3qaLJ2oq7sKtEwzZhzuEXqYmjW+n+J4yM3kNo0HQo3Xp1eUe47UM6Wy6yuAvIyllg==

"@opentelemetry/[email protected]", "@opentelemetry/semantic-conventions@^1.17.0":
"@opentelemetry/[email protected]":
version "1.17.0"
resolved "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.17.0.tgz"
integrity sha512-+fguCd2d8d2qruk0H0DsCEy2CTK3t0Tugg7MhZ/UQMvmewbZLNnJ6heSYyzIZWG5IPfAXzoj4f4F/qpM7l4VBA==

"@opentelemetry/semantic-conventions@^1.25.1":
version "1.27.0"
resolved "https://registry.yarnpkg.com/@opentelemetry/semantic-conventions/-/semantic-conventions-1.27.0.tgz#1a857dcc95a5ab30122e04417148211e6f945e6c"
integrity sha512-sAay1RrB+ONOem0OZanAR1ZI/k7yDpnOQSQmTMuGImUQb2y8EbSaCJ94FQluM74xoU03vlb2d2U90hZluL6nQg==

"@prisma/client@^3.8.1":
version "3.15.2"
resolved "https://registry.npmjs.org/@prisma/client/-/client-3.15.2.tgz"
Expand Down Expand Up @@ -1388,10 +1406,10 @@ abort-controller@^3.0.0:
dependencies:
event-target-shim "^5.0.0"

acorn-import-assertions@^1.9.0:
version "1.9.0"
resolved "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz"
integrity sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==
acorn-import-attributes@^1.9.5:
version "1.9.5"
resolved "https://registry.yarnpkg.com/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz#7eb1557b1ba05ef18b5ed0ec67591bfab04688ef"
integrity sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==

acorn-jsx@^5.2.0:
version "5.3.2"
Expand Down Expand Up @@ -3774,13 +3792,13 @@ import-fresh@^3.0.0, import-fresh@^3.2.1:
parent-module "^1.0.0"
resolve-from "^4.0.0"

import-in-the-middle@1.4.2:
version "1.4.2"
resolved "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.4.2.tgz"
integrity sha512-9WOz1Yh/cvO/p69sxRmhyQwrIGGSp7EIdcb+fFNVi7CzQGQB8U1/1XrKVSbEd/GNOAeM0peJtmi7+qphe7NvAw==
import-in-the-middle@^1.8.1:
version "1.11.2"
resolved "https://registry.yarnpkg.com/import-in-the-middle/-/import-in-the-middle-1.11.2.tgz#dd848e72b63ca6cd7c34df8b8d97fc9baee6174f"
integrity sha512-gK6Rr6EykBcc6cVWRSBR5TWf8nn6hZMYSRYqCcHa0l0d1fPK7JSYo6+Mlmck76jIX9aL/IZ71c06U2VpFwl1zA==
dependencies:
acorn "^8.8.2"
acorn-import-assertions "^1.9.0"
acorn-import-attributes "^1.9.5"
cjs-module-lexer "^1.2.2"
module-details-from-path "^1.0.3"

Expand Down

0 comments on commit af0e41b

Please sign in to comment.