Skip to content

Commit

Permalink
Merge pull request #316 from yoonghan/develop
Browse files Browse the repository at this point in the history
Fix opentelemetry file into right folder.
  • Loading branch information
yoonghan authored Jan 9, 2025
2 parents 48f5f50 + 0c0cafa commit 4537ff3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const customJestConfig = {
"layout.tsx",
"<rootDir>/src/app/experiments/*",
"<rootDir>/src/app/projects/*",
"<rootDir>/src/instrumentation.ts",
],
}

Expand Down
8 changes: 0 additions & 8 deletions instrumentation.ts → src/instrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,10 @@ export function register() {
?.spanContext()
?.traceState?.get("checkly")
if (isChecklySpan) {
console.log(
"Sampling decision for Checkly span:",
SamplingDecision.RECORD_AND_SAMPLED
)
return {
decision: SamplingDecision.RECORD_AND_SAMPLED,
}
} else {
console.log(
"Sampling decision for non-Checkly span:",
SamplingDecision.NOT_RECORD
)
return {
decision: SamplingDecision.NOT_RECORD,
}
Expand Down

0 comments on commit 4537ff3

Please sign in to comment.