---
title: LaunchTaskID
framework: metrickit
role: symbol
role_heading: Structure
path: metrickit/launchtaskid
---

# LaunchTaskID

An identifier for a task measured as part of an extended app launch.

## Declaration

```swift
struct LaunchTaskID
```

## Discussion

Discussion LaunchTaskID is RawRepresentable and ExpressibleByStringLiteral. You can pass a string literal directly as the id argument to trackLaunchTask(id:onTrackingError:_:) or trackLaunchTask(id:onTrackingError:_:): await manager.trackLaunchTask(id: "initial-data-load") {     await loadInitialData() } Choose unique, descriptive names for each task you track. The system uses the ID to associate measurements with the specific work you perform during launch.

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [ExpressibleByExtendedGraphemeClusterLiteral](swift/expressiblebyextendedgraphemeclusterliteral.md)
- [ExpressibleByStringLiteral](swift/expressiblebystringliteral.md)
- [ExpressibleByUnicodeScalarLiteral](swift/expressiblebyunicodescalarliteral.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### App state reporting

- [StateReportingDomain](metrickit/statereportingdomain.md)
