Skip to content

Commit

Permalink
Remove Prisma instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
wcalderipe committed Nov 6, 2024
1 parent be2a202 commit a664d82
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 65 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ generator client {
//
// Reference: https://github.com/nrwl/nx-recipes/tree/main/nestjs-prisma
output = "../../../../../../../node_modules/@prisma/client/armory"
// Enable tracing to integrate with OTEL.
//
// Reference: https://www.prisma.io/docs/orm/prisma-client/observability-and-logging/opentelemetry-tracing
previewFeatures = ["tracing", "interactiveTransactions"]
}

datasource db {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ generator client {
//
// Reference: https://github.com/nrwl/nx-recipes/tree/main/nestjs-prisma
output = "../../../../../../../node_modules/@prisma/client/policy-engine"
// Enable tracing to integrate with OTEL.
//
// Reference: https://www.prisma.io/docs/orm/prisma-client/observability-and-logging/opentelemetry-tracing
previewFeatures = ["tracing", "interactiveTransactions"]
}

datasource db {
Expand Down
4 changes: 0 additions & 4 deletions apps/vault/src/shared/module/persistence/schema/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ generator client {
//
// Reference: https://github.com/nrwl/nx-recipes/tree/main/nestjs-prisma
output = "../../../../../../../node_modules/@prisma/client/vault"
// Enable tracing to integrate with OTEL.
//
// Reference: https://www.prisma.io/docs/orm/prisma-client/observability-and-logging/opentelemetry-tracing
previewFeatures = ["tracing", "interactiveTransactions"]
}

datasource db {
Expand Down
56 changes: 6 additions & 50 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
"@opentelemetry/semantic-conventions": "1.27.0",
"@opentelemetry/winston-transport": "0.7.0",
"@prisma/client": "5.22.0",
"@prisma/instrumentation": "5.22.0",
"@radix-ui/react-checkbox": "1.1.1",
"@radix-ui/react-collapsible": "1.0.3",
"@radix-ui/react-dialog": "1.0.5",
Expand Down
3 changes: 1 addition & 2 deletions packages/open-telemetry/src/lib/open-telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { Resource } from '@opentelemetry/resources'
import { PeriodicExportingMetricReader } from '@opentelemetry/sdk-metrics'
import { NodeSDK } from '@opentelemetry/sdk-node'
import { ATTR_SERVICE_NAME } from '@opentelemetry/semantic-conventions'
import { PrismaInstrumentation } from '@prisma/instrumentation'

type OpenTelemetryOption = {
serviceName: string
Expand Down Expand Up @@ -48,7 +47,7 @@ export const buildOpenTelemetrySdk = ({ serviceName, diagLogLevel }: OpenTelemet
metricReader: new PeriodicExportingMetricReader({
exporter: new OTLPMetricExporter()
}),
instrumentations: [...getNodeAutoInstrumentations(), new PrismaInstrumentation()]
instrumentations: [getNodeAutoInstrumentations()]
})
}

Expand Down

0 comments on commit a664d82

Please sign in to comment.