/plushcap/analysis/launchdarkly/this-one-weird-trick-to-trace-your-application-at-scale-for-free

This One Weird Trick to Trace Your Application at Scale for Free

What's this blog post about?

Recently, detailed tracing was added to streaming API servers, but the memory required exceeded expectations. To manage this issue, a feature flag was implemented in the instrumentation code, allowing control over whether or not to allocate memory for storing traces. This approach enables on-demand activation of detailed tracing within 200ms and preserves memory when the flag is off. LaunchDarkly's feature flags can be used with custom attributes such as serviceName, operationName, account, project, environment, and key to target specific traces for storage or exclusion. This allows for efficient and customizable tracing in applications without compromising performance.

Company
LaunchDarkly

Date published
May 24, 2019

Author(s)
Mike Zorn

Word count
491

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.