Commit Graph

80 Commits (process-per-ip)

Author SHA1 Message Date
Vinicius Brasil 674a298c79 Add Open Telemetry tracers to ingestion 4 years ago
Vinicius Brasil 4b9032d822
Google Analytics Import Refactor (#2046)
* Create separate module for GA HTTP requests

* Fetch GA data entirely instead of monthly

* Add buffering to GA imports

* Change positional args to maps when serializing from GA

* Create Google Analytics VCR tests
4 years ago
Adam Rutkowski 3b82ba0e25
Upgrade to Geolix 2.0 (#1997)
* Upgrade geolix

* Remove geolix pool config

* Save unnecessary Task.async_stream roundtrip

Normally the Geolix API accepts `:where` keyword option that designates
the database to look up. In case no parameter is supplied, it'll spawn
a parallel map over all databases available. In this case we have only
one DB anyway, so there is no need for the extra instrumentation.

* Follow up on direct :geolocation lookups
4 years ago
Manu S Ajith 81f18ff0a5
Setup promex (#1999)
* Setup promex

Signed-off-by: Manu S Ajith <neo@codingarena.in>

* Cleanup promex config file

Signed-off-by: Manu S Ajith <neo@codingarena.in>
4 years ago
Uku Taht 2b8e3ea62a
Use finch in sentry client (#1996)
* Introduce Finch for Sentry integration

* Make sure the DummyAgent can be started

* No need to sanitize the dsn, finch takes care of that

* Simplify the dummy child spec

* Annotate redirects clause

* Make use of new `get_int_from_path_or_env`

* Actually use finch in Sentry config

* Configure `excluded_domains` correctly for Sentry

The way sentry is configured currently, when we get an HTTP error it
will be logged twice - once from Sentry.PlugCapture and once from
Sentry.LoggerBackend. The logger backend module does the right thing
by default but for some reason we've been overriding the config
parameter that by default stops double-counting errors. This commit
returns to the default configuration which is better.

* Default to 15s timeout

* Attempt to send twice at most

* Warn in sentry client

* Use warn level in sentry client

Co-authored-by: Adam Rutkowski <hq@mtod.org>
4 years ago
Adam Rutkowski 45cc1d27a1
Fix dev environment startup errors (#1990)
* Include gelocation DB download in the development workflow

* Make sure `tls_certificate_check` is started ASAP

This prevents `:application_either_not_started_or_not_ready` errors
on application startup.

* Mark Makefile targets as PHONY

By default Make assumes the targets are files,
in this case none of them are.
4 years ago
Uku Taht 292a419473
Add feature flag to block event ingest (#1991)
Event ingest can be blocked using the flag `block_event_ingest`
4 years ago
Uku Taht 6cc9afff50 Add observer_cli 4 years ago
Uku Taht bbcd40b352 Upgrade opentelemetry_ecto 5 years ago
Uku Taht f18a211dcc
Ingest throughput improvement test setup (#1867)
* Add OTEL and test Cachex for sessions

* Move load test

* Start apps in the appropriate order
5 years ago
Uku Taht ce55dc4ae9
Retries Google Analytics API request if it returns empty rows (#1858)
* Retries Google Analytics API request if it returns empty rows

* Remove HTTPoison.Retry completely
5 years ago
Uku Taht 7c1d64458e Add fun with flags library 5 years ago
Uku Taht 83c407c016
Upgrade Oban & configure Stager plugin (#1822) 5 years ago
Uku Taht 97f0dbbcbd Retry 502 response 5 years ago
Uku Taht ef552c9a32 Upgrade dependencies 5 years ago
Uku Taht 06b165eb6d Run GA import in monthly batches 5 years ago
Uku Taht 0ab8d653be Add retry mechanism to HTTPoison 5 years ago
Marc Neudert 1c3085050c
Upgrade ua_inspector to 3.0 (#1762)
* Upgrade ua_inspector to 3.0

* Update ua_inspector database
5 years ago
Uku Taht a9879de1f4 Remove more OTEL stuff 5 years ago
Uku Taht 83df555f55 Remove OTEL 5 years ago
RobertJoonas b4992cedc1
Referrer spam blocklist (#1750)
* integrating blocklist library

* loads blocklist dependency from Github
5 years ago
Uku Taht 045268f080 Remove console log 5 years ago
Uku Taht 711cbdfca2 Remove unused custom domain code 5 years ago
Uku Taht 442e401ede Use new location library 5 years ago
Uku Taht 01706b7590 Remove dead code 5 years ago
Uku Taht effe56b3e4 Use new iso_codes package 5 years ago
Uku Taht 01c5a6cb5a Use phoenix javascript from NPM 5 years ago
Uku Taht 5c02811d26 Add opentelemetry oban 5 years ago
Uku Taht 9e2de6a2ff Set OTEL as temporary app 5 years ago
Uku Taht 76f6a00bec Add honeycomb 5 years ago
Uku Taht 9edbbe805d Update dependencies 5 years ago
Uku Taht f77c37800f Use safe version of Cachex.fetch
Fixes #905
5 years ago
Uku Taht 7cb148a4f1 Use only root domain in user id generation 5 years ago
feld 1bedfd3a93
Update minimum elixir version to 1.11 (#1310)
Required by the use of config_env() in config/config.exs
5 years ago
Uku Taht a84429ba0f Update ref and ua databases 5 years ago
Uku Taht 6228995d4f Rate limit login attempts to 5 per minute 6 years ago
Uku Taht 22172074d8 Remove json logger 6 years ago
Vignesh Joglekar 7f3e55418b
Changes from static tracker script name assignments to dynamic (#786)
Co-authored-by: Uku Taht <Uku.taht@gmail.com>
6 years ago
Uku Taht e511c9663e
Pagination for sites listing (#994)
* Add simple pagination to sites index page

* Add changelog entry
6 years ago
Uku Taht 8d1039b8ce
Upgrades Oban to v2.6.1 (#967)
* Upgrades Oban to v2.6.1

* Use correct clickhouse_ecto
6 years ago
Uku Taht 7982c236c1 Better Sentry tracking 6 years ago
Uku Taht fbe6ab9b61 Remove AppSignal 6 years ago
Uku Taht 86f098327c Update bamboo_postmark to work with bamboo 2.0 6 years ago
Uku Taht 3b8fad4942 Upgrade sentry to 8.0 6 years ago
Uku Taht fa64a73d6e
Upgrade mailer dependency (#899)
* Upgrade mailer dependency

* Changelog
6 years ago
Uku Taht 292b68d9b1 Remove unnecessary extra_applications 6 years ago
Uku Taht 8964780d8c Revert "Update bamboo_smtp"
This reverts commit 686fb6cac1.
6 years ago
Uku Taht 686fb6cac1 Update bamboo_smtp 6 years ago
Uku Taht 2d8a03e861 Add JSON logger 6 years ago
Uku Taht 563c8d99f4 Fix new configuration 6 years ago