voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
25 lines (14 loc) • 648 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/performance](./performance.md) > [PerformanceTrace](./performance.performancetrace.md) > [getAttribute](./performance.performancetrace.getattribute.md)
## PerformanceTrace.getAttribute() method
Retrieves the value which a custom attribute is set to.
<b>Signature:</b>
```typescript
getAttribute(attr: string): string | undefined;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| attr | string | Name of the custom attribute. |
<b>Returns:</b>
string \| undefined