Skip to content

Commit 6b0890e

Browse files
committed
small cleanup
1 parent 2d82fb1 commit 6b0890e

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@microlabs/otel-cf-workers",
3-
"version": "1.0.0-rc.25",
3+
"version": "1.0.0-rc.24",
44
"main": "dist/cjs/index.js",
55
"module": "dist/esm/index.js",
66
"types": "dist/esm/index.d.ts",
@@ -24,7 +24,7 @@
2424
"fix-dist": "echo '{\"type\": \"module\"}' > dist/esm/package.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
2525
"build": "run-s -l clean build-esm build-cjs fix-dist",
2626
"release": "run-s build publish",
27-
"publish": "pnpm build",
27+
"publish": "changeset publish",
2828
"preversion": "run-s -l check:* build",
2929
"prepublishOnly": "run-s -l check:* build",
3030
"check": "run-s -l check:*",

src/instrumentation/page.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { ReadableSpan } from '@opentelemetry/sdk-trace-base'
22
import { Initialiser, setConfig } from '../config'
33
import { exportSpans, proxyExecutionContext } from './common'
4-
// import { instrumentEnv } from "./env"
54
import { Exception, SpanKind, SpanOptions, SpanStatusCode, context as api_context, trace } from '@opentelemetry/api'
65
import { wrap } from '../wrap'
76
import {
@@ -31,8 +30,6 @@ export function executePageHandler(pagesFn: PagesFunction, [request]: PageHandle
3130
kind: SpanKind.SERVER,
3231
}
3332

34-
console.log(request.data)
35-
3633
const promise = tracer.startActiveSpan(
3734
`${request.request.method} ${request.functionPath}`,
3835
options,
@@ -71,7 +68,6 @@ export function createPageHandler<
7168
apply: async (target, _thisArg, argArray: Parameters<PagesFunction>): Promise<Response> => {
7269
const [orig_ctx] = argArray
7370
const config = initialiser(orig_ctx.env as Record<string, unknown>, orig_ctx.request)
74-
// const env = instrumentEnv(orig_ctx.env as Record<string, unknown>)
7571
const { ctx, tracker } = proxyExecutionContext(orig_ctx)
7672
const context = setConfig(config)
7773

src/sdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function parseConfig(supplied: TraceConfig): ResolvedTraceConfig {
143143
}
144144
}
145145

146-
export function createInitialiser(config: ConfigurationOption): Initialiser {
146+
function createInitialiser(config: ConfigurationOption): Initialiser {
147147
if (typeof config === 'function') {
148148
return (env, trigger) => {
149149
const conf = parseConfig(config(env, trigger))

0 commit comments

Comments
 (0)