Commit Graph

989 Commits (process-per-ip)

Author SHA1 Message Date
Vinicius Brasil 674a298c79 Add Open Telemetry tracers to ingestion 4 years ago
Vinicius Brasil 852a832edd Fix Credo warnings 4 years ago
Vinicius Brasil c9756d5637 Implement Ingestion.Session process strategy 4 years ago
Vinicius Brasil d3d2868e4a Parse event domain in Plausible.Ingestion.Request 4 years ago
Vinicius Brasil 6ad9ccfaf3 Parse event URL in Plausible.Ingestion.Request 4 years ago
Vinicius Brasil bc68235d04
Add fallback for GA reports without rows (#2121) 4 years ago
Uku Taht 00d82fd5b1 Increase user_agents cache size to 10k 4 years ago
Uku Taht f4db53109c Add guard to CRM subscription_plan function 4 years ago
Uku Taht 7bfd7cc219 Fix captcha HTTP request 4 years ago
Uku Taht eb99133791 Fix favicon requests 4 years ago
RobertJoonas 4f4b05335e
link to contact page instead of mailto (#2108) 4 years ago
Vinicius Brasil a10d44a0d7
Refactor event struct creation function (#2098)
* Replace Ingestion.Request headers with user_agent

* Replace generic Ingestion.Request params with specific fields

* Refactor event building function into small functions

* Move Plausible.Ingestion to Plausible.Ingestion.Event

* Add option to override event fields while building

* Rename Ingestion.Request meta to props

* Replace UTM-specific fields with generic query_params

* Remove Map.from_struct/1 call from ingestion pipeline

* Remove stash options from ingestion
4 years ago
Uku Taht ad739f603b Fix compile error 4 years ago
Uku Taht 57c758cff9 Fix favicon HTTP response handling 4 years ago
Vinicius Brasil 4d20c7ce70
Catch Google Search Console grant error (#2101)
* Remove invalid Jason.decode argument

Co-authored-by: Robert Joonas <robertjoonas16@gmail.com>

* Add custom message to Google invalid grant error

Co-authored-by: Robert Joonas <robertjoonas16@gmail.com>

* Test invalid_grant while refreshing Google token

Co-authored-by: Robert Joonas <robertjoonas16@gmail.com>

Co-authored-by: Robert Joonas <robertjoonas16@gmail.com>
4 years ago
RobertJoonas 8595332717
Merge pull request #2105 from renbaoshuo/update-links-to-docs
Update links to documents
4 years ago
Manu S Ajith 777c69b1d6
Migrate HTTPoison to Finch (#2054)
Signed-off-by: Manu S Ajith <neo@codingarena.in>

Signed-off-by: Manu S Ajith <neo@codingarena.in>
4 years ago
Baoshuo eac4660354
Update links to documents 4 years ago
Uku Taht 5c83ea77de Remove cache reporting to logs 4 years ago
Manu S Ajith c7a9da75b4
Enable Cachex stats (#2100)
Signed-off-by: Manu S Ajith <neo@codingarena.in>

Signed-off-by: Manu S Ajith <neo@codingarena.in>
4 years ago
Manu S Ajith c0c36646e2
Add Custom telemetry for Plausible.Event.WriteBuffer, Plausible.Event.WriteBuffer and Cachex (#2095)
* Add Custom telemetry for Plausible.Event.WriteBuffer, Plausible.Event.WriteBuffer and Cachex

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

* Rename telemetry.ex to avoid confusion with Phoenix Telemetry supervisor

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

* Remove duplicate event

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

Signed-off-by: Manu S Ajith <neo@codingarena.in>
4 years ago
Uku Taht a5757bc61e Allow ownership transfers 4 years ago
Vinicius Brasil 6b8ed12567
Fix Google Search Console API call (#2090)
This commit fixes a bug where fetching Google Search Console keywords
raised a FunctionClauseError. This was introduced in #2046. This commit
also adds test coverage.
4 years ago
ruslandoga ce461b5192 Auth updates 4 years ago
Vinicius Brasil d41fd68e99
Create struct for event requests (#2084)
* Create struct for saving ingestion request

* Create separate function to buffer events
4 years ago
RobertJoonas a058cf6240
added a test and changed hashmode condition (#2082) 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
Vinicius Brasil b415ebe776
Fix geolocation subdivision pattern matching (#2063)
* Fix geolocation subdivision pattern matching

This commit fixes a bug where regions were not being saved. This was
caused because Geolix response was returning an additional
`:geolocation` map key. It also adds a test case for this.

Closes #2033

* Add geolocation database to .gitignore
4 years ago
Manu S Ajith ca15b605b7
Filter out noisy exception from Sentry (#2058)
Signed-off-by: Manu S Ajith <neo@codingarena.in>
4 years ago
Vinicius Brasil b5ea6ae3dc
Keep user filter when listing cities, countries, and regions stats (#2030)
This commit fixes a bug where location filters were filtering stats but
not the locations list. This was caused by a `Map.put/3` call that
overrides the user filter. This commit rollbacks 5b57143273
changes and removes the `Map.put/3` call.

Closes #1982
4 years ago
Marko Saric 2eec492f45
Remove the note about hiring (#2020) 4 years ago
Uku Taht 4a33cd0a25 Delegate to default Sentry filter 4 years ago
Uku Taht 6fbb0a24a8 Do not log Sentry.CrashError to Sentry
Stops recursive error logging to sentry
4 years ago
Sasha Fonseca db3a852f26
Fix missing 'pageviews' column from 'pages.csv' (#1988)
* Fix missing 'pageviews' column from 'pages.csv'

* Add CHANGELOG entry for Issue #1878 fix
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
Uku Taht 0553fa041b Parse geolix pool config as integers 4 years ago
Uku Taht 1cdffb098e Revert "Temporarily return 404 for favicons"
This reverts commit 8d3bdd9816.
4 years ago
Uku Taht 8c94e52f0f Adds tracing attribute when event ingest is blocked 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 8d3bdd9816 Temporarily return 404 for favicons 4 years ago
Uku Taht 9617bd41b3 Revert "Add task to remove a page from the database"
This reverts commit 566d1b917a.
4 years ago
Uku Taht 58cb2f19ae Add feature flag for google analytics imports 4 years ago
Uku Taht 566d1b917a Add task to remove a page from the database 4 years ago
Marko Saric cd73df694c
We are looking for a Technical Customer Success Manager (#1977) 4 years ago
Uku Taht de17154f58 Show custom event goal form by default 4 years ago
Marko Saric e7dda24930
removing the note that we're hiring (#1958) 4 years ago
Marko Saric 2f9dbfc4a6
Changing sites into stats in this message as well (#1953)
just to make sure that it's the stats rather than actual sites that get locked
4 years ago
Uku Taht 3e5695408a
Use new Session.CacheStore in favour of Session.Store (#1934)
* Remove Session.Store in favour of Session.CacheStore

* Add CHANGELOG entry

* Use appropriate enum function
5 years ago