Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf and features #49

Merged
merged 11 commits into from
Dec 21, 2023
Merged

perf and features #49

merged 11 commits into from
Dec 21, 2023

Conversation

c-cube
Copy link
Member

@c-cube c-cube commented Dec 20, 2023

this introduces:

  • self-tracing for the ocurl backend
  • GC metrics are collected on tick, not on GC signal (more regular)
  • new config options for ocurl backend (self tracing, and tick interval)

it's cleaner to emit GC events on ticks rather than on GC,
because it avoids both spamming if the GC is very active, and
emitting nothing when there are few allocations.
we don't go through OTEL for self tracing as it can create
regular span emission where normally there would be none
(emitting a self-tracing span might create a batch, which then
has to be sent after the batch timeout, and sending
that one creates a new span, etc.)
ticker interval will affect how often metrics are emitted,
this doesn't need be related to batch timeouts.
it's less dangerous to emit spans for self-tracing, even
if nothing else is going on, than risk having them accumulate
in case the program emits no spans but emits a lot of
metrics and logs (which create self-tracing spans)
@c-cube c-cube requested a review from mattjbray as a code owner December 20, 2023 21:14
src/client-ocurl/config.mli Show resolved Hide resolved
@c-cube c-cube merged commit b95eb21 into main Dec 21, 2023
3 checks passed
@c-cube c-cube deleted the wip-perf-2023-12-20 branch December 21, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants