Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analyst 0.2.0 #2

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 0 additions & 18 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,6 @@ on:
workflow_dispatch:

jobs:
latest-beta-swift-version:
name: Latest (Beta) Swift Version
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: maxim-lobanov/[email protected]
with:
xcode-version: latest
- uses: actions/cache@v2
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
- name: Check Xcode version
run: xcodebuild -version
- name: Check Swift version
run: swift --version
- name: Debug Build & Test
run: swift test
macos:
name: macOS ${{ matrix.configuration }}
runs-on: macos-11
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v2
- uses: maxim-lobanov/[email protected]
with:
xcode-version: latest
xcode-version: latest-stable
- uses: actions/cache@v2
with:
path: .build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spm-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Swift Package Update

on:
schedule:
- cron: '0 0 * * 1'
- cron: '0 0 1 * *'
workflow_dispatch:

jobs:
Expand Down
59 changes: 29 additions & 30 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,62 +9,61 @@ let package = Package(
products: [
.library(
name: "Analyst",
targets: ["Analyst"]
targets: ["MetricAnalyst", "TraceAnalyst"]
),
.library(
name: "JaegerAnalyst",
targets: ["Analyst", "JaegerAnalyst"]
name: "MetricAnalyst",
targets: ["MetricAnalyst"]
),
.library(
name: "AnalystPresenter",
targets: ["Analyst", "AnalystPresenter"]
name: "PrometheusAnalyst",
targets: ["PrometheusAnalyst"]
),
.library(
name: "PrometheusAnalyst",
targets: ["Analyst", "PrometheusAnalyst"]
)
name: "TraceAnalyst",
targets: ["TraceAnalyst"]
),
.library(
name: "JaegerAnalyst",
targets: ["JaegerAnalyst"]
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", from: "2.22.0"),
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0" ..< "3.0.0"),
.package(url: "https://github.com/grpc/grpc-swift.git", from: "1.1.0"),
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.0.0"),
.package(url: "https://github.com/Apodini/Presenter.git", from: "0.1.0")
],
targets: [
.target(
name: "Analyst",
name: "MetricAnalyst",
dependencies: [
.product(name: "NIO", package: "swift-nio"),
.product(name: "CoreMetrics", package: "swift-metrics")
]
),
.target(
name: "JaegerAnalyst",
name: "PrometheusAnalyst",
dependencies: [
.target(name: "Analyst"),
.product(name: "GRPC", package: "grpc-swift")
.target(name: "MetricAnalyst"),
]
),
.target(
name: "AnalystPresenter",
dependencies: [
.target(name: "Analyst"),
.product(name: "MetricPresenter", package: "Presenter"),
.product(name: "TracePresenter", package: "Presenter"),
]
name: "TraceAnalyst",
dependencies: []
),
.target(
name: "PrometheusAnalyst",
name: "JaegerAnalyst",
dependencies: [
.target(name: "Analyst"),
.product(name: "AsyncHTTPClient", package: "async-http-client"),
.product(name: "NIOFoundationCompat", package: "swift-nio")
.target(name: "TraceAnalyst"),
.product(name: "GRPC", package: "grpc-swift")
]
),
.testTarget(
name: "AnalystTests",
dependencies: [
.target(name: "Analyst")
]
name: "JaegerAnalystTests",
dependencies: ["JaegerAnalyst"]
),
.testTarget(
name: "PrometheusAnalystTests",
dependencies: ["PrometheusAnalyst"],
resources: [.copy("prometheus")]
)
]
)
3 changes: 0 additions & 3 deletions Sources/Analyst/Exports.swift

This file was deleted.

9 changes: 0 additions & 9 deletions Sources/Analyst/Metrics/Metric/Counter.swift

This file was deleted.

8 changes: 0 additions & 8 deletions Sources/Analyst/Metrics/Metric/Gauge.swift

This file was deleted.

3 changes: 0 additions & 3 deletions Sources/Analyst/Metrics/Metric/Metric.swift

This file was deleted.

4 changes: 0 additions & 4 deletions Sources/Analyst/Metrics/Metric/MetricInformation.swift

This file was deleted.

9 changes: 0 additions & 9 deletions Sources/Analyst/Metrics/Metric/Recorder.swift

This file was deleted.

9 changes: 0 additions & 9 deletions Sources/Analyst/Metrics/Metric/Timer.swift

This file was deleted.

15 changes: 0 additions & 15 deletions Sources/Analyst/Metrics/MetricResult/CounterScalarResult.swift

This file was deleted.

15 changes: 0 additions & 15 deletions Sources/Analyst/Metrics/MetricResult/GaugeScalarResult.swift

This file was deleted.

13 changes: 0 additions & 13 deletions Sources/Analyst/Metrics/MetricResult/RangeResult.swift

This file was deleted.

15 changes: 0 additions & 15 deletions Sources/Analyst/Metrics/MetricResult/RecorderScalarResult.swift

This file was deleted.

15 changes: 0 additions & 15 deletions Sources/Analyst/Metrics/MetricResult/TimerScalarResult.swift

This file was deleted.

9 changes: 0 additions & 9 deletions Sources/Analyst/Metrics/MetricResult/VectorResult.swift

This file was deleted.

18 changes: 0 additions & 18 deletions Sources/Analyst/Metrics/Provider/MetricProvider.swift

This file was deleted.

31 changes: 0 additions & 31 deletions Sources/Analyst/Metrics/Query/Counter+Query.swift

This file was deleted.

35 changes: 0 additions & 35 deletions Sources/Analyst/Metrics/Query/Gauge+Query.swift

This file was deleted.

Loading