Skip to content

Commit 990f8dd

Browse files
authored
add framework session attribute (#1357)
1 parent de9caec commit 990f8dd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/tracing/session.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export class Session {
8585
'browser.mobile': navigator.userAgentData?.mobile,
8686
'browser.platform': navigator.userAgentData?.platform,
8787
'client.address': '$remote_ip', // updated at the API
88+
'rollbar.notifier.framework': 'browser-js',
8889
'user_agent.original': navigator.userAgent,
8990
...attrs,
9091
});

test/replay/integration/e2e.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ describe('Session Replay E2E', function () {
176176
expect(span_r).to.have.property('events');
177177
expect(span_r.events).to.be.an('array');
178178
expect(span_r).to.have.property('attributes').that.is.an('array');
179-
expect(span_r.attributes).to.have.lengthOf(14);
179+
expect(span_r.attributes).to.have.lengthOf(15);
180180

181181
expect(span_r.attributes).to.deep.include({
182182
key: 'rollbar.replay.id',

0 commit comments

Comments
 (0)