Buckets:
| import type { ClientTraceDataEntry } from './tracer' | |
| /** | |
| * Takes OpenTelemetry client trace data and the `clientTraceMetadata` option configured in the Next.js config (currently | |
| * experimental) and returns a filtered/allowed list of client trace data entries. | |
| */ | |
| export function getTracedMetadata( | |
| traceData: ClientTraceDataEntry[], | |
| clientTraceMetadata: string[] | undefined | |
| ): ClientTraceDataEntry[] | undefined { | |
| if (!clientTraceMetadata) return undefined | |
| return traceData.filter(({ key }) => clientTraceMetadata.includes(key)) | |
| } | |
Xet Storage Details
- Size:
- 544 Bytes
- Xet hash:
- 3e56d3a43c5691b25fb9f628c4d716adceea54a276067eb2aea69b8f0e8d65a3
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.