Skip to content

Commit

Permalink
TRACING-4435 upgraded to 4.6.1-2
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-sumo committed Oct 21, 2024
1 parent 3ceec50 commit 07e591f
Show file tree
Hide file tree
Showing 23 changed files with 38 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion e2e_test/demoApps/static/react/dist/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -62467,7 +62467,7 @@
},
{
name: "nodejs",
version: "4.6.0",
version: "4.6.1-2",
date: "2016-09-27",
lts: "Argon",
security: true
Expand Down
4 changes: 2 additions & 2 deletions e2e_test/loadScript/fixtures/api/recordError.logs.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down Expand Up @@ -40,7 +40,7 @@
{
"scope": {
"name": "@sumologic/opentelemetry-rum",
"version": "4.6.0"
"version": "4.6.1-2"
},
"logRecords": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions e2e_test/loadScript/fixtures/errors.logs.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down Expand Up @@ -40,7 +40,7 @@
{
"scope": {
"name": "@sumologic/opentelemetry-rum",
"version": "4.6.0"
"version": "4.6.1-2"
},
"logRecords": [
{
Expand Down
2 changes: 1 addition & 1 deletion e2e_test/loadScript/fixtures/errors.traces.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion e2e_test/loadScript/fixtures/load_async.traces.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion e2e_test/loadScript/fixtures/load_legacy.traces.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion e2e_test/loadScript/fixtures/load_sync.traces.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"key": "sumologic.rum.version",
"value": {
"stringValue": "4.6.0"
"stringValue": "4.6.1-2"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sumologic/opentelemetry-rum",
"version": "4.6.0",
"version": "4.6.1-2",
"description": "Adds OpenTelemetry tracing auto-instrumentation in the browser. Collects spans on network events and sends them to Sumo Logic.",
"main": "./dist/index.js",
"types": "./dist/src/index.d.ts",
Expand Down
14 changes: 13 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import {
} from '@opentelemetry/sdk-trace-base';
import { WebTracerProvider } from '@opentelemetry/sdk-trace-web';
import { XMLHttpRequestInstrumentation } from '@opentelemetry/instrumentation-xml-http-request';
import { FetchInstrumentation } from '@opentelemetry/instrumentation-fetch';
import {
FetchInstrumentation,
HttpInstrumentation,
} from '@opentelemetry/instrumentation-fetch';
import { SumoLogicContextManager } from './sumologic-context-manager';
import { DocumentLoadInstrumentation } from '@opentelemetry/instrumentation-document-load';
import { UserInteractionInstrumentation } from '@opentelemetry/instrumentation-user-interaction';
Expand Down Expand Up @@ -264,6 +267,15 @@ export const initialize = ({
propagateTraceHeaderCorsUrls,
ignoreUrls,
}),
new HttpInstrumentation({
enabled: true,
propagateTraceHeaderCorsUrls,
ignoreIncomingPaths: ['/youtube'],
// ignoreUrls: [collectionSourceUrl, ...ignoreUrls],
ignoreIncomingRequestHook: () => {
return true; // Ignore every incoming request
},
}),
],
});
};
Expand Down

0 comments on commit 07e591f

Please sign in to comment.