Skip to content

Commit

Permalink
Merge pull request #4 from martinkuba/feat/page_view_event_instrument…
Browse files Browse the repository at this point in the history
…ation

small fixes
  • Loading branch information
Abinet18 authored Oct 2, 2023
2 parents e09387b + 7e53674 commit 5a44ca8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkgs/instrumentations/web/page-view/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
import {
EventEmitterProvider
} from '@opentelemetry/sandbox-sdk-events';
import { PageViewInstrumentation } from '@opentelemetry/sandbox-instrumentation-page-view';
import { PageViewEventInstrumentation } from '@opentelemetry/sandbox-instrumentation-page-view';
import { registerInstrumentations } from '@opentelemetry/sandbox-instrumentation';
import { logs } from '@opentelemetry/sandbox-api-logs';
import { events } from '@opentelemetry/sandbox-api-events';
Expand All @@ -38,7 +38,7 @@ const eventEmitterProvider = new EventEmitterProvider();
events.setGlobalEventEmitterProvider(eventEmitterProvider);

registerInstrumentations({
instrumentations: [new PageViewInstrumentation()],
instrumentations: [new PageViewEventInstrumentation()],
});
```

Expand Down
2 changes: 1 addition & 1 deletion pkgs/instrumentations/web/page-view/src/instrumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class PageViewEventInstrumentation extends InstrumentationBase<unknown> {
'browser',
VERSION
);
this.applyCustomEventData = config.applyCustomEventData;
this.applyCustomEventData = config?.applyCustomEventData;
}

init() {}
Expand Down
2 changes: 1 addition & 1 deletion pkgs/instrumentations/web/page-view/src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*/

// this is autogenerated file for @opentelemetry/sandbox-instrumentation-page-view, see scripts/version-update.js
export const VERSION = '0.38.0';
export const VERSION = '0.43.0';
1 change: 0 additions & 1 deletion pkgs/instrumentations/web/page-view/test/pageView.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import { logs } from '@opentelemetry/sandbox-api-logs';
import { events } from '@opentelemetry/sandbox-api-events';
import { PageTypes } from '../src/enums/PageTypes';


describe('PageView Instrumentation', () => {
let plugin: PageViewEventInstrumentation;
const sandbox = sinon.createSandbox();
Expand Down

0 comments on commit 5a44ca8

Please sign in to comment.