Skip to content
This repository has been archived by the owner on Aug 30, 2019. It is now read-only.

[sampler] reduce log verbosity and exposing state through expvar #248

Merged
merged 3 commits into from
Mar 17, 2017

Conversation

ufoot
Copy link

@ufoot ufoot commented Mar 17, 2017

No description provided.

@ufoot ufoot requested a review from LotharSee March 17, 2017 08:54
agent/sampler.go Outdated
state.InTPS, state.OutTPS, state.MaxTPS, state.Offset, state.Slope, state.Cardinality)

updateSamplerState(state) // publish through expvar

statsd.Client.Gauge("datadog.trace_agent.sampler.scoring.offset", state.Offset, nil, 1)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open question: should we keep those direct calls to statsd? Because since the values are in expvar, it's rather trivial to get them with https://www.datadoghq.com/blog/instrument-go-apps-expvar-datadog/

@ufoot ufoot merged commit 41ad387 into master Mar 17, 2017
@ufoot ufoot added this to the 5.12 milestone Mar 17, 2017
@dtilghman dtilghman deleted the christian/lessverboselogs branch March 18, 2017 05:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants