File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,13 @@ import { AssetsService } from './core/services/assets.service';
23
23
export const appConfig : ApplicationConfig = {
24
24
providers : [
25
25
provideRouter (
26
- routes ,
26
+ [
27
+ {
28
+ path : '' ,
29
+ title : 'Backbase Engineering' ,
30
+ children : routes
31
+ }
32
+ ] ,
27
33
withInMemoryScrolling ( {
28
34
scrollPositionRestoration : 'enabled' ,
29
35
anchorScrolling : 'enabled' ,
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export class ObservabilityService {
69
69
70
70
provider . getActiveSpanProcessor ( ) . onStart = ( span : Span ) => {
71
71
span . setAttribute ( 'view.name' , document . title ) ;
72
- span . setAttribute ( 'view.path ' , document . location . href ) ;
72
+ span . setAttribute ( 'http.url ' , document . location . href ) ;
73
73
} ;
74
74
75
75
registerInstrumentations ( {
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ import { MatButtonModule } from '@angular/material/button';
37
37
import { MatSidenavModule } from '@angular/material/sidenav' ;
38
38
import { NotFoundComponent } from '../not-found/not-found.component' ;
39
39
import { HtmlInMarkdownService } from '../../core/services/html-in-markdown.service' ;
40
- import { Meta } from '@angular/platform-browser' ;
40
+ import { Meta , Title } from '@angular/platform-browser' ;
41
41
import { ObservabilityService } from '../../core/services/observability.service' ;
42
42
43
43
@Component ( {
@@ -81,6 +81,9 @@ export class PostComponent implements OnDestroy {
81
81
} ) ;
82
82
return ;
83
83
} ) ,
84
+ tap ( ( post ) =>
85
+ this . title . setTitle ( `${ post . title } | ${ this . activatedRoute . snapshot . parent ?. title } ` )
86
+ ) ,
84
87
tap ( ( posts ) => this . setRelatedPosts ( posts ) ) ,
85
88
tap ( ( posts ) => this . observability . publishEvent ( {
86
89
post : posts . title ,
@@ -116,7 +119,8 @@ export class PostComponent implements OnDestroy {
116
119
@Inject ( DOCUMENT ) private document : Document ,
117
120
private htmlInMarkdownService : HtmlInMarkdownService ,
118
121
private meta : Meta ,
119
- private observability : ObservabilityService
122
+ private observability : ObservabilityService ,
123
+ private title : Title ,
120
124
) { }
121
125
122
126
ngOnDestroy ( ) : void {
You can’t perform that action at this time.
0 commit comments