diff --git a/.github/workflows/ex-publish.yml b/.github/workflows/ex-publish.yml index 3389afd..6c315cb 100644 --- a/.github/workflows/ex-publish.yml +++ b/.github/workflows/ex-publish.yml @@ -8,11 +8,11 @@ on: branches: - main paths: - - logflare-ex/** + - ex/** defaults: run: - working-directory: ./logflare-ex + working-directory: ./ex jobs: publish: @@ -27,7 +27,7 @@ jobs: uses: actions/cache@v3 with: path: | - logflare-ex/deps + ex/deps key: mix-${{ hashFiles('**/mix.lock') }} restore-keys: mix - run: mix deps.get diff --git a/.github/workflows/ex-tests.yml b/.github/workflows/ex-tests.yml index 1bfced1..f2ebc37 100644 --- a/.github/workflows/ex-tests.yml +++ b/.github/workflows/ex-tests.yml @@ -5,11 +5,11 @@ on: pull_request: branches: [main] paths: - - logflare-ex/** + - ex/** defaults: run: - working-directory: ./logflare-ex + working-directory: ./ex jobs: check: @@ -29,7 +29,7 @@ jobs: uses: actions/cache@v3 with: path: | - logflare-ex/deps + ex/deps key: mix-${{ hashFiles('**/mix.lock') }} restore-keys: mix - run: mix deps.get diff --git a/.github/workflows/js-publish-dev.yml b/.github/workflows/js-publish-dev.yml index 6cefed0..2909aad 100644 --- a/.github/workflows/js-publish-dev.yml +++ b/.github/workflows/js-publish-dev.yml @@ -5,11 +5,11 @@ on: branches: - main paths: - - logflare-js/** + - js/** defaults: run: - working-directory: ./logflare-js + working-directory: ./js jobs: build: diff --git a/.github/workflows/js-publish.yml b/.github/workflows/js-publish.yml index b31a141..b2cedc0 100644 --- a/.github/workflows/js-publish.yml +++ b/.github/workflows/js-publish.yml @@ -7,7 +7,7 @@ on: defaults: run: - working-directory: ./logflare-js + working-directory: ./js jobs: diff --git a/.github/workflows/js-tests.yml b/.github/workflows/js-tests.yml index e4a56c5..58ef5cd 100644 --- a/.github/workflows/js-tests.yml +++ b/.github/workflows/js-tests.yml @@ -5,11 +5,11 @@ on: pull_request: branches: ["main"] paths: - - logflare-js/** + - js/** defaults: run: - working-directory: logflare-js + working-directory: js jobs: unit_tests: @@ -28,7 +28,7 @@ jobs: uses: actions/cache/restore@v3 with: path: | - logflare-js/node_modules + js/node_modules key: ${{ runner.os }}-${{matrix.node-version }}-npm - run: npm ci # use experiemntal node option for 16.x @@ -53,7 +53,7 @@ jobs: uses: actions/cache/restore@v3 with: path: | - logflare-js/node_modules + js/node_modules key: ${{ runner.os }}-${{matrix.node-version }}-npm - name: Install deps run: npm ci diff --git a/README.md b/README.md index f50ae3e..5162a37 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,14 @@ -# LogflareSdk +# Warehouse SDK -Multi-language SDK for Logflare. +Multi-language SDK for Supabase Warehouse (Logflare). Supported languages and integrations: - Javascript/Typescript - Elixir + - LoggerBackend - a backend for Logger + - TelemetryReporter - a telemetry reporter module for `:telemetry_metrics` -## Elixir - -The Elixir SDK has the following features: - -- LoggerBackend - a Logger backend for Logger -- TelemetryReporter - a telemetry reporter module for `:telemetry_metrics` ## Development diff --git a/logflare-ex/.formatter.exs b/ex/.formatter.exs similarity index 100% rename from logflare-ex/.formatter.exs rename to ex/.formatter.exs diff --git a/logflare-ex/.gitignore b/ex/.gitignore similarity index 100% rename from logflare-ex/.gitignore rename to ex/.gitignore diff --git a/logflare-ex/README.md b/ex/README.md similarity index 100% rename from logflare-ex/README.md rename to ex/README.md diff --git a/logflare-ex/config/config.exs b/ex/config/config.exs similarity index 100% rename from logflare-ex/config/config.exs rename to ex/config/config.exs diff --git a/logflare-ex/config/dev.exs b/ex/config/dev.exs similarity index 100% rename from logflare-ex/config/dev.exs rename to ex/config/dev.exs diff --git a/logflare-ex/config/test.exs b/ex/config/test.exs similarity index 100% rename from logflare-ex/config/test.exs rename to ex/config/test.exs diff --git a/logflare-ex/lib/application.ex b/ex/lib/application.ex similarity index 100% rename from logflare-ex/lib/application.ex rename to ex/lib/application.ex diff --git a/logflare-ex/lib/batched_event.ex b/ex/lib/batched_event.ex similarity index 100% rename from logflare-ex/lib/batched_event.ex rename to ex/lib/batched_event.ex diff --git a/logflare-ex/lib/batcher.ex b/ex/lib/batcher.ex similarity index 100% rename from logflare-ex/lib/batcher.ex rename to ex/lib/batcher.ex diff --git a/logflare-ex/lib/batcher_sup.ex b/ex/lib/batcher_sup.ex similarity index 100% rename from logflare-ex/lib/batcher_sup.ex rename to ex/lib/batcher_sup.ex diff --git a/logflare-ex/lib/logflare_ex.ex b/ex/lib/logflare_ex.ex similarity index 100% rename from logflare-ex/lib/logflare_ex.ex rename to ex/lib/logflare_ex.ex diff --git a/logflare-ex/lib/logflare_ex/client.ex b/ex/lib/logflare_ex/client.ex similarity index 100% rename from logflare-ex/lib/logflare_ex/client.ex rename to ex/lib/logflare_ex/client.ex diff --git a/logflare-ex/lib/logflare_ex/logger_backend.ex b/ex/lib/logflare_ex/logger_backend.ex similarity index 100% rename from logflare-ex/lib/logflare_ex/logger_backend.ex rename to ex/lib/logflare_ex/logger_backend.ex diff --git a/logflare-ex/lib/logflare_ex/logger_backend/formatter.ex b/ex/lib/logflare_ex/logger_backend/formatter.ex similarity index 100% rename from logflare-ex/lib/logflare_ex/logger_backend/formatter.ex rename to ex/lib/logflare_ex/logger_backend/formatter.ex diff --git a/logflare-ex/lib/logflare_ex/logger_backend/stacktrace.ex b/ex/lib/logflare_ex/logger_backend/stacktrace.ex similarity index 100% rename from logflare-ex/lib/logflare_ex/logger_backend/stacktrace.ex rename to ex/lib/logflare_ex/logger_backend/stacktrace.ex diff --git a/logflare-ex/lib/logflare_ex/repo.ex b/ex/lib/logflare_ex/repo.ex similarity index 100% rename from logflare-ex/lib/logflare_ex/repo.ex rename to ex/lib/logflare_ex/repo.ex diff --git a/logflare-ex/lib/logflare_ex/telemetry_reporter.ex b/ex/lib/logflare_ex/telemetry_reporter.ex similarity index 100% rename from logflare-ex/lib/logflare_ex/telemetry_reporter.ex rename to ex/lib/logflare_ex/telemetry_reporter.ex diff --git a/logflare-ex/mix.exs b/ex/mix.exs similarity index 100% rename from logflare-ex/mix.exs rename to ex/mix.exs diff --git a/logflare-ex/mix.lock b/ex/mix.lock similarity index 100% rename from logflare-ex/mix.lock rename to ex/mix.lock diff --git a/logflare-ex/test/batcher_test.exs b/ex/test/batcher_test.exs similarity index 100% rename from logflare-ex/test/batcher_test.exs rename to ex/test/batcher_test.exs diff --git a/logflare-ex/test/logflare_ex_test.exs b/ex/test/logflare_ex_test.exs similarity index 100% rename from logflare-ex/test/logflare_ex_test.exs rename to ex/test/logflare_ex_test.exs diff --git a/logflare-ex/test/logger_backend_test.exs b/ex/test/logger_backend_test.exs similarity index 100% rename from logflare-ex/test/logger_backend_test.exs rename to ex/test/logger_backend_test.exs diff --git a/logflare-ex/test/support/batcher_case.ex b/ex/test/support/batcher_case.ex similarity index 100% rename from logflare-ex/test/support/batcher_case.ex rename to ex/test/support/batcher_case.ex diff --git a/logflare-ex/test/support/factory.ex b/ex/test/support/factory.ex similarity index 100% rename from logflare-ex/test/support/factory.ex rename to ex/test/support/factory.ex diff --git a/logflare-ex/test/support/test_utils.ex b/ex/test/support/test_utils.ex similarity index 100% rename from logflare-ex/test/support/test_utils.ex rename to ex/test/support/test_utils.ex diff --git a/logflare-ex/test/telemetry_reporter_test.exs b/ex/test/telemetry_reporter_test.exs similarity index 100% rename from logflare-ex/test/telemetry_reporter_test.exs rename to ex/test/telemetry_reporter_test.exs diff --git a/logflare-ex/test/test_helper.exs b/ex/test/test_helper.exs similarity index 100% rename from logflare-ex/test/test_helper.exs rename to ex/test/test_helper.exs diff --git a/logflare-js/.gitignore b/js/.gitignore similarity index 100% rename from logflare-js/.gitignore rename to js/.gitignore diff --git a/logflare-js/package-lock.json b/js/package-lock.json similarity index 100% rename from logflare-js/package-lock.json rename to js/package-lock.json diff --git a/logflare-js/package.json b/js/package.json similarity index 100% rename from logflare-js/package.json rename to js/package.json diff --git a/logflare-js/src/main.ts b/js/src/main.ts similarity index 100% rename from logflare-js/src/main.ts rename to js/src/main.ts diff --git a/logflare-js/src/vite-env.d.ts b/js/src/vite-env.d.ts similarity index 100% rename from logflare-js/src/vite-env.d.ts rename to js/src/vite-env.d.ts diff --git a/logflare-js/test/main.test.ts b/js/test/main.test.ts similarity index 100% rename from logflare-js/test/main.test.ts rename to js/test/main.test.ts diff --git a/logflare-js/test/setup.ts b/js/test/setup.ts similarity index 100% rename from logflare-js/test/setup.ts rename to js/test/setup.ts diff --git a/logflare-js/tsconfig.json b/js/tsconfig.json similarity index 100% rename from logflare-js/tsconfig.json rename to js/tsconfig.json diff --git a/logflare-js/vite.config.ts b/js/vite.config.ts similarity index 100% rename from logflare-js/vite.config.ts rename to js/vite.config.ts