Update how we recommend including the dependency

Since otherwise current users get hit with warnings.
This commit is contained in:
Konrad `ktoso` Malawski 2021-12-09 20:53:49 +09:00 committed by Konrad `ktoso` Malawski
parent 6bc8aa8a06
commit d09e751437
1 changed files with 7 additions and 1 deletions

View File

@ -22,7 +22,13 @@ To add a dependency on the metrics API package, you need to declare it in your `
and to your application/library target, add "Metrics" to your dependencies:
```swift
.target(name: "BestExampleApp", dependencies: ["Metrics"]),
.target(
name: "BestExampleApp",
dependencies: [
// ...
.product(name: "Metrics", package: "swift-metrics"),
]
),
```
### Emitting metrics information