Commit 62ad0f3
authored
fix(angular): Set unknown component name default in TraceDirective (#6222)
Fix a bug in the Angular SDK's `TraceDirective` where previously, the fallback `UNKNOWN_COMPONENT` name wasn't correctly applied to the span description if users didn't specify a manual value for the directive:
```html
<!-- this adds <standalone1> as a span description -->
<app-my-component trace="standalone1"></app-my-component>
<!-- this used to add <> as a span description -->
<!-- With this fix, we now get <unknown> as a span description -->
<app-my-component trace></app-my-component>
```1 parent 1a64b60 commit 62ad0f3
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
171 | 175 | | |
172 | 176 | | |
173 | 177 | | |
| |||
0 commit comments