Skip to content

Commit

Permalink
Fewer comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jessitron committed Jul 5, 2024
1 parent eabbfd1 commit e2826cc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"source": [
"src/hny.js"
],
"sourceMap": true
"sourceMap": false
}
},
"author": "Jessica Kerr <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion release
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ npm run build
# we should make sure that package.json is committed
release_title="v$(cat package.json | jq -r .version)"

gh release create -n "export otel.trace" --title $release_title --prerelease $release_title dist/otel.js*
gh release create -n "what does this do" --title $release_title --prerelease $release_title dist/hny.js*
7 changes: 0 additions & 7 deletions src/hny.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { HoneycombWebSDK } from "@honeycombio/opentelemetry-web";
import { getWebAutoInstrumentations } from "@opentelemetry/auto-instrumentations-web";
import { trace } from "@opentelemetry/api";

console.log("Helly from Hny.js");
function initializeTracing(
params /* { apiKey: string, serviceName: string } */
) {
Expand All @@ -20,10 +19,6 @@ function initializeTracing(
);
params.serviceName = "unknown_service";
}
console.log("Params", params);
if (params.debug) {
console.log("Debug mode, my favorite!");
}

const configDefaults = {
ignoreNetworkEvents: true,
Expand All @@ -45,7 +40,6 @@ function initializeTracing(
],
...params,
});
console.log("starting SDK...");
sdk.start();

instrumentGlobalErrors();
Expand Down Expand Up @@ -74,7 +68,6 @@ function instrumentGlobalErrors() {
}

function sendTestSpan() {
console.log("Time to send the test span!");
const span = trace.getTracer("test span").startSpan("test span");
console.log("Sending test span", span.spanContext());
span.end();
Expand Down

0 comments on commit e2826cc

Please sign in to comment.