Commit Graph

29 Commits

Author SHA1 Message Date
David Zhao
dac20160b3 Customizable retry parameters and improved logging (#776)
* Customizable retry parameters and improved logging

* consolidate into struct
2024-07-31 22:37:00 -07:00
Raja Subramanian
9e23fdbd08 Revert "Update to go/jose/v4 (#756)" (#759)
This reverts commit 73ece66d30.
2024-07-12 13:28:45 +05:30
David Zhao
73ece66d30 Update to go/jose/v4 (#756)
* Update to go/jose/v4

* changeset

* remove unused import

* use longer key for test
2024-07-10 10:12:29 -07:00
Raja Subramanian
7afb922269 Log webhook event details. (#518)
* Log webhook event details.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-14 15:00:32 +05:30
David Colburn
6b455c1116 silence notifier http client (#445)
* notifier log error -> warn

* silence all
2023-08-10 12:29:58 -07:00
David Zhao
f3bba12b3e Component support for logger (#436)
* Component support for logger

With the ability to dynamically update log levels per component

* support hierarchical config

* consolidate pion logger to use components
2023-08-03 11:59:04 -07:00
David Zhao
c9e9ae555f Add license headers & NOTICE (#429)
* Add license headers & NOTICE

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-27 16:43:25 -07:00
David Zhao
dbea81ff07 Log adapter for retryablehttp (#389)
* Log adapter for retryablehttp

* call depth of 1
2023-05-29 10:38:45 -07:00
Raja Subramanian
c5dc103838 Add sample rate and drift to RTP stats (#378)
* Add sample rate and drift to RTP stats

* make tests a bit more robust

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-13 14:38:13 +05:30
David Colburn
cadccd5410 update notifier (#374)
* update notifier

* update drop test

* fix draining

* change webhookCheckInterval back
2023-05-09 17:21:13 -07:00
David Zhao
ac74d1e920 Periodically process webhooks queue, in case an event was not flushed (#372)
* Periodically process webhooks queue, in case an event was not flushed

* more resilient goroutines check

* added more logging
2023-05-05 16:35:07 -07:00
David Zhao
d2054890a6 Fix incorrectly wiping out dropped count (#351) 2023-04-16 09:33:59 -07:00
David Zhao
f54aaadb8c Revamped notifier to avoid out of order delivery (#350)
Moving to a structure where each URL occupies their own delivery goroutine.
This avoids blocking of notifications to other URLs.
2023-04-15 01:04:56 -07:00
David Zhao
2956c3424f Improve webhook resilience with retryablehttp (#345) 2023-04-12 16:28:35 -07:00
David Zhao
9a57a8c5b2 Fix support for Redis cluster mode, updated to v9 (#297)
* Fix support for Redis cluster mode, updated to v9

* update to Go 1.18
2023-02-12 21:48:01 -08:00
David Zhao
782f517a6e Use custom mime-type to avoid overeager JSON parsing. (#210)
Middlewares/server frameworks have a tendency of replacing req.body with
parsed JSON object. We do not want this behavior as our Webhook receiver
needs to validate the raw string body against the `Authorization` header
2022-09-19 21:03:55 -07:00
David Colburn
28c92d8f69 Stream status and egress updated (#196)
* stream status and egress updated

* generated protobuf

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-08-25 19:51:00 -07:00
David Colburn
f03f3734be Ingress updates (#143)
* ingress updates

* generated protobuf

* undo refactor

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-07-06 11:10:06 -07:00
David Colburn
137b876761 remove recording (#142)
* remove recording

* remove generated files

* generated protobuf

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-07-05 17:10:59 -07:00
David Zhao
54544c489c Helper method to receive WebhookEvent (#109) 2022-03-30 16:14:23 -07:00
David Zhao
8dff6f89d2 Webhook events for track published (#106)
* Webhook events for track published

* timeout for webhook notifications to avoid hang
2022-03-18 22:24:01 -07:00
David Colburn
ec6020d865 Egress (#92)
* egress

* generated protobuf

* remove ingress

* update egress package

* update optional enums

* generated protobuf

* updated proto

* add sent_at to start request

* generated protobuf

* default codecs

* remove extra codecs for now

* generated protobuf

* put recording back

* add connection options

* generated protobuf

* put recording back

* add sent_at and room_id

* generated protobuf

* add sent_at and room_id

* generated protobuf

* update egressInfo

* put recordingInfo back in webhooks

* egress events

* update analytics event

* egress status

* deprecate recording rpcs

* undo some changes

* key/secret -> token

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-02-22 00:21:29 -08:00
lukasIO
3280169f2d add content type header to webhook requests (#44) 2021-11-11 13:08:05 -08:00
David Colburn
4dede7984e Add recording_started webhook, add ctx to notifier (#39)
* add recording_started webhook, add ctx to notifier

* update test
2021-11-08 18:00:12 -06:00
David Zhao
bae8dd8bc5 use ioutil for Go 1.15 compat 2021-10-25 12:59:55 -07:00
David Colburn
e3e7ce0232 notifier interface, message bus queue (#25)
* notifier interface, message bus queue

* remove ctx

* change name
2021-09-22 15:32:51 -05:00
David Colburn
b60237c535 recording webhooks (#24)
* recording webhooks

* use token instead of api key+secret

* remove token
2021-09-21 17:18:30 -05:00
David Zhao
8d0a9538d3 refactor, removed recording-related webhooks 2021-08-08 22:53:23 -07:00
David Zhao
992c4b2da9 webhook support 2021-08-08 22:17:46 -07:00