Commit graph

115 commits

Author SHA1 Message Date
Simon Cruanes
5180be31bc
feat(collector): move GC metrics logic to the collector
this helps avoiding reentrancy issue, where the collector allocates,
triggers the GC metrics alarm, which tries to push new metrics in the
middle of a batch (currently leading to a potential deadlock).
2022-04-11 13:09:13 -04:00
Simon Cruanes
591cbad4b2
rename some GC metrics 2022-03-31 16:20:51 -04:00
Simon Cruanes
6722c49bb0
feat(curl-client): block some signals in background thread(s) 2022-03-30 11:54:12 -04:00
Simon Cruanes
8f2a666a70
feat: relax type for Trace.with_ so it's covariant in attrs 2022-03-28 15:00:16 -04:00
Simon Cruanes
46487f3997
gc metrics: count in bytes, not words 2022-03-28 14:31:01 -04:00
Simon Cruanes
fdd4582a2f
util: add module to emit some GC metrics 2022-03-28 11:37:17 -04:00
Matt Bray
d92a9be08a feat: allow passing ~scope back to Trace.with_ 2022-03-25 15:56:01 +00:00
Simon Cruanes
2d220b20af
ocurl backend: ticker thread 2022-03-25 11:06:34 -04:00
Matt Bray
b67fc00821
Merge pull request #10 from AestheticIntegration/matt/cohttp-client
Integration with cohttp-lwt (client)
2022-03-25 11:57:32 +00:00
Matt Bray
1046ec2bf6
Merge pull request #9 from AestheticIntegration/matt/cohttp
Integration with cohttp-lwt
2022-03-25 11:36:39 +00:00
Matt Bray
0ad2d3f641 feat(cohttp): trace post_form 2022-03-25 10:56:35 +00:00
Matt Bray
5e8affe508 fix(cohttp): use correct scope for traceparent header 2022-03-25 10:56:35 +00:00
Matt Bray
82bcebbb89 chore(cohttp): optional service_name 2022-03-25 10:56:35 +00:00
Matt Bray
32fec9b2f5 chore(cohttp): trace more methods 2022-03-25 10:56:35 +00:00
Matt Bray
c5e789c2d8 wip(cohttp): traced client 2022-03-25 10:56:35 +00:00
Matt Bray
f44c524ad0 feat(cohttp/server): put the trace scope in the request 2022-03-25 10:56:23 +00:00
Matt Bray
78f2e7bde4 refactor 2022-03-25 10:56:23 +00:00
Matt Bray
e17fb1dfb7 feat(cohttp): pass scope to callback 2022-03-24 18:12:13 +00:00
Simon Cruanes
2bff7897f7
doc 2022-03-24 14:03:54 -04:00
Simon Cruanes
15511a7517
docs 2022-03-24 14:02:45 -04:00
Matt Bray
75f1612ab0 feat(cohttp): pass attrs 2022-03-24 17:56:29 +00:00
Matt Bray
2d62671d07 refactor(cohttp): wrap in Server module 2022-03-24 17:51:43 +00:00
Matt Bray
c9dbab94f9 feat(cohttp): read trace context from traceparent header 2022-03-24 17:44:28 +00:00
Matt Bray
a1115661b4 wip: cohttp integration 2022-03-24 17:38:46 +00:00
Matt Bray
c419a61815
Merge pull request #8 from AestheticIntegration/matt/traceparent
feat: parse W3C traceparent header
2022-03-24 17:38:03 +00:00
Matt Bray
0cd75d5a6d use Bytes.unsafe_to_string 2022-03-24 17:36:45 +00:00
Matt Bray
1e96404502 feat: raise Invalid_argument for bad hex values 2022-03-24 17:35:20 +00:00
Matt Bray
0326a8a9a2 feat: parse W3C traceparent header 2022-03-24 17:22:45 +00:00
Simon Cruanes
25da9c4ccc
tiny refactor 2022-03-24 11:25:59 -04:00
Simon Cruanes
901730583c
remove over from backend 2022-03-24 10:59:37 -04:00
Dave Aitken
b52d9d02e0
fire-and-forget sending of spans to collector so we dont block userland 2022-03-24 14:27:33 +00:00
Dave Aitken
1ca6497a73
add add_attrs helper to add attrs to existing scope 2022-03-24 14:10:12 +00:00
Simon Cruanes
8c1d658ab9
add to_hex/of_hex for span id/trace id 2022-03-23 18:49:44 -04:00
Dave Aitken
d982dafa60
fix(lwt): add events to span from scope 2022-03-23 21:09:11 +00:00
Simon Cruanes
e2e2c4baac
fuck vendoring atomic 2022-03-23 15:33:03 -04:00
Dave Aitken
51ddd79634
tidy: return scope from lwt with_ (consistent with non-lwt version) 2022-03-23 15:11:03 +00:00
Simon Cruanes
4fd4139921
always use a default aggregation_temporality 2022-03-23 08:58:18 -04:00
Matt Bray
eadb95e8fb feat: set global attributes on ResourceSpans/ResourceMetrics 2022-03-23 12:26:51 +00:00
Matt Bray
a683232b5a feat: include global_attributes in metric data points 2022-03-23 12:26:51 +00:00
Matt Bray
9ba57c5df1 refactor: use _conv_key_value 2022-03-23 12:26:51 +00:00
Simon Cruanes
03313e9121
fix(ocurl): check for batch timeouts in exporter as well 2022-03-22 13:00:06 -04:00
Simon Cruanes
3a72a73c15
self exported metrics 2022-03-22 12:38:29 -04:00
Simon Cruanes
bcbb07027f
add ?enable to the ocurl client 2022-03-22 11:33:12 -04:00
Simon Cruanes
000292cd17
catch errors in backend 2022-03-22 11:26:24 -04:00
Simon Cruanes
b03ff26ba6
change signature of with_setup 2022-03-22 11:18:52 -04:00
Simon Cruanes
fb0778805d
ocurl backend: implement non-threaded mode, add config for batch timeout
emit batches, even if they're not full, after given timeout
2022-03-21 15:20:31 -04:00
Simon Cruanes
a00d4d2383
collector: if queue is full, drop item, and wakeup thread 2022-03-21 15:06:38 -04:00
Simon Cruanes
124ba09b2b
feat: implement background thread, collector config, batching 2022-03-21 15:01:41 -04:00
Simon Cruanes
3d89103ca6
typo 2022-03-21 13:16:50 -04:00
Simon Cruanes
341c70f18f
make add_event lazy 2022-03-21 11:19:36 -04:00