voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
26 lines (15 loc) • 686 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) > [putAttribute](./performance.performancetrace.putattribute.md)
## PerformanceTrace.putAttribute() method
Set a custom attribute of a trace to a certain value.
<b>Signature:</b>
```typescript
putAttribute(attr: string, value: string): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| attr | string | Name of the custom attribute. |
| value | string | Value of the custom attribute. |
<b>Returns:</b>
void