Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nikmel2803 committed Jul 30, 2024
1 parent 237caf5 commit 1c606c0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/cli/alto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ if (process.env.DOTENV_CONFIG_PATH) {
if (process.env.SENTRY_DSN) {
sentry.init({
dsn: process.env.SENTRY_DSN,
// Performance Monitoring
tracesSampleRate: 1.0,
// Set sampling rate for profiling - this is relative to tracesSampleRate
profilesSampleRate: 1.0,
environment: process.env.ENVIRONMENT
})
}
Expand Down
2 changes: 0 additions & 2 deletions src/cli/instrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
SamplingDecision
} from "@opentelemetry/sdk-trace-base"
import { SemanticAttributes } from "@opentelemetry/semantic-conventions"
// import { FetchInstrumentation } from "opentelemetry-instrumentation-fetch-node"
import { UndiciInstrumentation } from "@opentelemetry/instrumentation-undici"

class CustomSampler implements Sampler {
Expand Down Expand Up @@ -47,7 +46,6 @@ const sdk = new NodeSDK({
requireParentforOutgoingSpans: true
}),
new UndiciInstrumentation(),
// new FetchInstrumentation({}),
new FastifyInstrumentation(),
new PinoInstrumentation()
],
Expand Down
1 change: 0 additions & 1 deletion src/rpc/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ export class Server {
}

private async rpc(request: FastifyRequest, reply: RpcReply): Promise<void> {
this.fastify.log.info({ headers: request.headers }, "req headers")
reply.rpcStatus = "failed" // default to failed
let requestId: number | null = null

Expand Down

0 comments on commit 1c606c0

Please sign in to comment.