File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ export type BrowserTracingConfig = {
6969 environment ?: string
7070 networkRecordingOptions ?: NetworkRecordingOptions
7171 serviceName ?: string
72+ serviceVersion ?: string
7273 tracingOrigins ?: boolean | ( string | RegExp ) [ ]
7374 urlBlocklist ?: string [ ]
7475 eventNames ?: EventName [ ]
@@ -142,6 +143,7 @@ export const setupBrowserTracing = (
142143 const resource = new Resource ( {
143144 [ SemanticAttributes . ATTR_SERVICE_NAME ] :
144145 config . serviceName ?? 'highlight-browser' ,
146+ [ SemanticAttributes . ATTR_SERVICE_VERSION ] : config . serviceVersion ,
145147 'deployment.environment.name' : environment ,
146148 'highlight.project_id' : config . projectId ,
147149 [ SemanticAttributes . ATTR_USER_AGENT_ORIGINAL ] : navigator . userAgent ,
Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ export class ObserveSDK implements Observe {
136136 : undefined ,
137137 tracingOrigins : this . _options ?. tracingOrigins ,
138138 serviceName : this . _options ?. serviceName ?? 'browser' ,
139+ serviceVersion : this . _options ?. version ?? 'browser' ,
139140 instrumentations : this . _options ?. otel ?. instrumentations ,
140141 eventNames : this . _options ?. otel ?. eventNames ,
141142 } ,
You can’t perform that action at this time.
0 commit comments