Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/sdk-core/src/BacktraceCoreClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export abstract class BacktraceCoreClient {
this._rateLimitWatcher = new RateLimitWatcher(options.rateLimit);
this._attributeProvider = new AttributeManager([
new ClientAttributeProvider(
_sdkOptions.agent,
_sdkOptions.agentVersion,
_sessionProvider.sessionId,
options.userAttributes ?? {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { BacktraceAttributeProvider } from './BacktraceAttributeProvider';

export class ClientAttributeProvider implements BacktraceAttributeProvider {
constructor(
private readonly _sdkName: string,
private readonly _sdkVersion: string,
private readonly _sessionId: string,
private readonly _userAttributes: Record<string, unknown>,
Expand All @@ -12,6 +13,7 @@ export class ClientAttributeProvider implements BacktraceAttributeProvider {
public get(): Record<string, unknown> {
return {
'application.session': this._sessionId,
'backtrace.agent': this._sdkName,
'backtrace.version': this._sdkVersion,
...this._userAttributes,
};
Expand Down